config

package
v0.0.0-...-303e327 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfName

func ConfName() string

func HotReload

func HotReload(ctx context.Context, confName string)

func Init

func Init(cflag, app, default_conf string)

func Load

func Load(conf interface{}) (err error)

func LoadData

func LoadData(conf interface{}, data []byte) (err error)

func LoadFile

func LoadFile(conf interface{}, confName string) (err error)

func Register

func Register(fn func(conf []byte) error)

func SafeLoadData

func SafeLoadData(conf interface{}, data []byte) (err error)

Types

type Reload

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

func New

func New() *Reload

Jump to

Keyboard shortcuts

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