zconf

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Default Config Manager
	DefaultConfig = NewConfig()
)

Functions

func Bytes

func Bytes() []byte

Return config as raw json

func Get

func Get(path ...string) reader.Value

Get a value from the config

func Load

func Load(source ...source.Source) error

Load config sources

func LoadFile

func LoadFile(path string) error

LoadFile is short hand for creating a file source and loading it

func Map

func Map() map[string]interface{}

Return config as a map

func NewConfig

func NewConfig(opts ...config.Option) config.Config

NewConfig returns new config FIX number parse bug when watch json file

func Scan

func Scan(v interface{}) error

Scan values to a go type

func Sync

func Sync() error

Force a source changeset sync

func Watch

func Watch(path ...string) (config.Watcher, error)

Watch a value for changes

Types

This section is empty.

Directories

Path Synopsis
micro
source/gitlab
Package gitlab loads changesets from a gitlab
Package gitlab loads changesets from a gitlab
source/url2
Package gitlab loads changesets from a gitlab
Package gitlab loads changesets from a gitlab

Jump to

Keyboard shortcuts

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