mirror of
https://github.com/FlipsideCrypto/go-aws-config.git
synced 2026-02-06 02:37:00 +00:00
21 lines
569 B
Go
21 lines
569 B
Go
package awsconfig
|
|
|
|
import "time"
|
|
|
|
// Loader is a object that can import, initialize, and Get config values
|
|
type Loader interface {
|
|
Import(data []byte) error
|
|
Initialize() error
|
|
Get(key string) ([]byte, error)
|
|
Put(key string, value []byte) error
|
|
|
|
// Must functions will panic if they can't do what is requested.
|
|
// They are maingly meant for use with configs that are required for an app to start up
|
|
MustGetString(key string) string
|
|
MustGetBool(key string) bool
|
|
MustGetInt(key string) int
|
|
MustGetDuration(key string) time.Duration
|
|
|
|
//TODO add array support?
|
|
}
|