Documentation ¶ Overview ¶ Package staticconfig provides an immutable declarative config provider. Index ¶ type Provider func New(cfg *config.Config) *Provider func NewNamed(name string, cfg *config.Config) *Provider func (p *Provider) Load(_ context.Context) (*config.Config, error) func (p *Provider) Name() string func (p *Provider) Watch(_ context.Context, _ 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(cfg *config.Config) *Provider func NewNamed ¶ func NewNamed(name string, cfg *config.Config) *Provider func (*Provider) Load ¶ func (p *Provider) Load(_ context.Context) (*config.Config, error) func (*Provider) Name ¶ func (p *Provider) Name() string func (*Provider) Watch ¶ func (p *Provider) Watch(_ context.Context, _ 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.