config

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2021 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NameAddr        = "http_addr"
	DefaultAddr     = "0.0.0.0"
	NamePort        = "http_port"
	DefaultPort     = "80"
	NameLogLevel    = "log_level"
	DefaultLogLevel = "info"
)

Variables

View Source
var (
	ErrHttpAddr = errors.New(NameAddr)
	ErrHttpPort = errors.New(NamePort)
	ErrLogLevel = errors.New(NameLogLevel)
)

Functions

This section is empty.

Types

type Config

type Config struct {
	HttpAddr string
	HttpPort string
	LogLevel string

	DBConn string
}

func (Config) Valid

func (c Config) Valid() error

Jump to

Keyboard shortcuts

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