Documentation ¶
Index ¶
- func Get(key string) (string, bool)
- func GetBool(key string, def bool) bool
- func GetInt(key string, def int) int
- func GetString(key, def string) string
- func Replace(props *properties.Properties)
- type Cache
- type Composite
- type DynamoDBGetter
- type DynamoDBGetterArgs
- type File
- type Poller
- type Properties
- func (p *Properties) Get(key string) (string, bool)
- func (p *Properties) GetBool(key string, def bool) bool
- func (p *Properties) GetInt(key string, def int) int
- func (p *Properties) GetString(key, def string) string
- func (p *Properties) Properties() *properties.Properties
- func (p *Properties) Replace(props *properties.Properties)
- type S3
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Replace ¶
func Replace(props *properties.Properties)
Types ¶
type Cache ¶
type Cache struct { Store *Properties Source Poller RefreshInterval time.Duration ExpireAfter time.Duration }
func NewAsyncPollerSource ¶
func NewAsyncPollerSource(p *Properties, src Poller, period time.Duration) *Cache
func (*Cache) Poll ¶
func (c *Cache) Poll(ctx context.Context) (*properties.Properties, error)
type Composite ¶
type Composite struct {
Sources []Poller
}
func NewCompositeSource ¶
func (Composite) Poll ¶
func (c Composite) Poll(ctx context.Context) (*properties.Properties, error)
type DynamoDBGetter ¶
func NewDynamoDBGetterSource ¶
func NewDynamoDBGetterSource(cfg aws.Config, args DynamoDBGetterArgs) *DynamoDBGetter
func (DynamoDBGetter) Poll ¶
func (s DynamoDBGetter) Poll(ctx context.Context) (*properties.Properties, error)
type DynamoDBGetterArgs ¶
type File ¶
type File struct {
Path string
}
func NewFileSource ¶
func (File) Poll ¶
func (f File) Poll(ctx context.Context) (*properties.Properties, error)
type Poller ¶
type Poller interface {
Poll(context.Context) (*properties.Properties, error)
}
type Properties ¶
type Properties struct {
// contains filtered or unexported fields
}
func GetProperties ¶
func GetProperties() *Properties
func New ¶
func New() *Properties
func (*Properties) GetString ¶
func (p *Properties) GetString(key, def string) string
func (*Properties) Properties ¶
func (p *Properties) Properties() *properties.Properties
func (*Properties) Replace ¶
func (p *Properties) Replace(props *properties.Properties)
Click to show internal directories.
Click to hide internal directories.