config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	PostLoad() error
}

Config is your structure

type Manager

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

func NewManager

func NewManager(opts ...Option) (m *Manager, err error)

func (*Manager) Load

func (m *Manager) Load(dst any) (err error)

func (*Manager) Subscribe

func (m *Manager) Subscribe() (chan source.ConfigChange, error)

Subscribe returns a channel which will receive message on change

func (*Manager) Unsubscribe

func (m *Manager) Unsubscribe(msgCh chan source.ConfigChange)

Subscribe returns a channel which will receive message on change

type Option

type Option func(opts *options) error

func WithSource

func WithSource(source source.Source) Option

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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