Documentation
¶
Overview ¶
Package ffappconfig implements a SourceReader interface for AWS AppConfig. This package is intended to be used with the github.com/gsiffert/featureflag package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppConfigReader ¶
type AppConfigReader struct {
// contains filtered or unexported fields
}
AppConfigReader implements a SourceReader interface for AWS AppConfig. AppConfig restricts how regularly you can poll for configuration changes, this reader will cache the results from AppConfig and only poll when it's allowed to.
func New ¶
func New(client Client, params appconfigdata.StartConfigurationSessionInput) *AppConfigReader
New creates a new AppConfigReader.
type Client ¶
type Client interface { StartConfigurationSession(ctx context.Context, params *appconfigdata.StartConfigurationSessionInput, optFns ...func(*appconfigdata.Options)) (*appconfigdata.StartConfigurationSessionOutput, error) GetLatestConfiguration(ctx context.Context, params *appconfigdata.GetLatestConfigurationInput, optFns ...func(*appconfigdata.Options)) (*appconfigdata.GetLatestConfigurationOutput, error) }
Client is a subset of appconfigdata.Client.
Click to show internal directories.
Click to hide internal directories.