gfcfg

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMgr

type ConfigMgr interface {
	ReadAndWatch(ctx context.Context, key string) ([]byte, <-chan []byte, error)
	Read(ctx context.Context, key string) ([]byte, error)
	Watch(ctx context.Context, key string) (<-chan []byte, error)
}

func NewConfigMgr

func NewConfigMgr() ConfigMgr

type ConfigMgrImpl

type ConfigMgrImpl struct {
	// contains filtered or unexported fields
}

func (*ConfigMgrImpl) Read

func (m *ConfigMgrImpl) Read(ctx context.Context, key string) ([]byte, error)

func (*ConfigMgrImpl) ReadAndWatch

func (m *ConfigMgrImpl) ReadAndWatch(ctx context.Context, key string) ([]byte, <-chan []byte, error)

func (*ConfigMgrImpl) Watch

func (m *ConfigMgrImpl) Watch(ctx context.Context, key string) (<-chan []byte, error)

type Configure

type Configure interface {
	Init(ctx context.Context) error
	Read(ctx context.Context) ([]byte, error)
	Watch(ctx context.Context) (<-chan []byte, error)
}

Jump to

Keyboard shortcuts

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