config

package
v0.0.0-...-8e942fd Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2020 License: MIT Imports: 1 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 {
	Port               uint16 `yaml:"port"`
	Workers            uint16 `yaml:"workers"`
	DefaultMemoryLimit uint   `yaml:"default_memory_limit"`
	DefaultTimeLimit   uint   `yaml:"default_time_limit"`
	Info               string `yaml:"info"`
}

Config stores global config variables

func MakeConfig

func MakeConfig(buff *[]byte) *Config

MakeConfig loads variables from yaml buff to conf or sets defaults

func (*Config) GetConfig

func (conf *Config) GetConfig() []byte

GetConfig return current config in yaml format

Jump to

Keyboard shortcuts

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