config

package
v0.0.0-...-9440fe0 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigName = "sentinel_config"
	ConfigType = "yaml"
)

Variables

This section is empty.

Functions

func Generate

func Generate()

Generate is called to generate a default config file.

func Load

func Load() *viper.Viper

Load returns a viper config loaded and ready to get values from

Types

type Configuration

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

Configuration is a struct containing config info

func (*Configuration) Init

func (conf *Configuration) Init()

Init populates Configuration struct via a pointer

Jump to

Keyboard shortcuts

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