config

package
v0.0.0-...-d10ff07 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CfgFileName = "config.yaml"
	PathLocal   = "."
	PathGlobal  = "/etc/silencer"
)

Variables

This section is empty.

Functions

func GetInstance

func GetInstance() *configuration

Types

type Raw

type Raw map[string]interface{}

func Parse

func Parse(reader io.Reader) (Raw, error)

func (Raw) Bool

func (c Raw) Bool(key string) bool

func (Raw) Bytes

func (c Raw) Bytes(key string) uint64

func (Raw) Has

func (c Raw) Has(key string) bool

func (Raw) Int64

func (c Raw) Int64(key string) int64

func (Raw) String

func (c Raw) String(key string) string

func (Raw) StringSlice

func (c Raw) StringSlice(key string) []string

func (Raw) Sub

func (c Raw) Sub(key string) Raw

func (Raw) Uint64

func (c Raw) Uint64(key string) uint64

Jump to

Keyboard shortcuts

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