memoryconfig

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: 6 Imported by: 0

Documentation

Overview

Package memoryconfig provides an in-memory mutable 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(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)

Jump to

Keyboard shortcuts

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