staticconfig

package
v0.1.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package staticconfig provides an immutable declarative config provider.

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL