config

package
v0.0.0-...-8964234 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cfg config.Config

Functions

func APIHost

func APIHost() string

func ApiAllowedOrigins

func ApiAllowedOrigins() []string

func Debug

func Debug() bool

func Get

func Get(key string) reader.Value

Get key : value

func Init

func Init(c config.Config)

func LogLevel

func LogLevel() string

func RegisterTTL

func RegisterTTL() (time.Duration, time.Duration)

func Watch

func Watch(key string, fn func(watcher reader.Value), retryTime int)

Watch is wrapper of go-config's watch

Types

This section is empty.

Jump to

Keyboard shortcuts

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