Documentation ¶ Overview ¶ Package memoryconfig provides an in-memory mutable config provider. Index ¶ type Provider func New(name string, cfg *config.Config) (*Provider, error) func (p *Provider) Load(_ context.Context) (*config.Config, error) func (p *Provider) Name() string func (p *Provider) Update(cfg *config.Config) error func (p *Provider) Watch(_ context.Context, onReload func(), _ func(error)) (io.Closer, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Provider ¶ type Provider struct { // contains filtered or unexported fields } func New ¶ func New(name string, cfg *config.Config) (*Provider, error) func (*Provider) Load ¶ func (p *Provider) Load(_ context.Context) (*config.Config, error) func (*Provider) Name ¶ func (p *Provider) Name() string func (*Provider) Update ¶ func (p *Provider) Update(cfg *config.Config) error func (*Provider) Watch ¶ func (p *Provider) Watch(_ context.Context, onReload func(), _ func(error)) (io.Closer, error) Source Files ¶ View all Source files doc.goprovider.go Click to show internal directories. Click to hide internal directories.