config

package
v0.0.0-...-f606819 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Debug bool `default:"false"`

	LoggerLevel  string `default:"info" envconfig:"logger_level"`
	LoggerFormat string `default:"json" envconfig:"logger_format"`

	ConfigPath string `default:"./" envconfig:"config_path"`
	ConfigFile string `default:"triggy.yml" envconfig:"config_file"`
}

Config represents the configuration structure

func New

func New() (*Config, error)

New returns the configuration

func (*Config) JSON

func (c *Config) JSON() []byte

JSON exports configuration as JSON

Jump to

Keyboard shortcuts

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