config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2019 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 {
	Domain       string                  `yaml:"domain"`
	GitURL       string                  `yaml:"git-url"`
	RepoRoot     string                  `yaml:"repo-root"`
	Debug        bool                    `yaml:"debug"`
	Descriptions map[string]string       `yaml:"descriptions"`
	Loggers      map[string]LoggerConfig `yaml:"loggers"`
}

func NewConfig

func NewConfig(path string) (*Config, error)

type LoggerConfig added in v0.4.0

type LoggerConfig struct {
	Enable   bool   `yaml:"enable"`
	Mode     string `yaml:"mode"`
	Path     string `yaml:"path"`
	Priority string `yaml:"priority"`
}

Jump to

Keyboard shortcuts

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