config

package
v0.0.0-...-05212bf Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyServerAddress = "server.address"
	KeyServerPort    = "server.port"
	KeyGameWorld     = "game.world"
	KeyLogLevel      = "log.level"
)

Config keys according to https://crushit.atlassian.net/wiki/x/AQBiCQ

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

func New

func New(vp *viper.Viper) Config

func (Config) ApplyDefaults

func (c Config) ApplyDefaults()

func (Config) GameWorld

func (c Config) GameWorld() string

func (Config) LogLevel

func (c Config) LogLevel() zerolog.Level

func (Config) ServerAddr

func (c Config) ServerAddr() string

Jump to

Keyboard shortcuts

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