config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureLogger

func ConfigureLogger(config *LoggerConfig) (*logrus.Logger, error)

Types

type Config

type Config struct {
	Port          int
	ConfigFile    string
	WelcomeString string
	Settings      struct {
		// contains filtered or unexported fields
	}
	LogConfig LoggerConfig
}

func LoadConfig

func LoadConfig(cmd *cobra.Command) *Config

func (Config) String

func (c Config) String() string

type LoggerConfig

type LoggerConfig struct {
	Level string
	Out   io.Writer
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳