Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface { // Get gets a configuration based on a given configuration ID Get(ctx context.Context, id configapi.ConfigurationID) (*configapi.Configuration, error) // Create creates a configuration Create(ctx context.Context, configuration *configapi.Configuration) error // Update updates a configuration Update(ctx context.Context, configuration *configapi.Configuration) error // Delete deletes a configuration Delete(ctx context.Context, configuration *configapi.Configuration) error // List lists all the configuration List(ctx context.Context) ([]*configapi.Configuration, error) // Watch watches configuration changes Watch(ctx context.Context, ch chan<- configapi.ConfigurationEvent, opts ...WatchOption) error Close(ctx context.Context) error }
Store configuration store interface
type WatchOption ¶
type WatchOption interface {
// contains filtered or unexported methods
}
WatchOption is a configuration option for Watch calls
func WithConfigurationID ¶
func WithConfigurationID(id configapi.ConfigurationID) WatchOption
WithConfigurationID returns a Watch option that watches for configurations based on a given configuration ID
func WithReplay ¶
func WithReplay() WatchOption
WithReplay returns a WatchOption that replays past changes
Click to show internal directories.
Click to hide internal directories.