g

package
v0.0.0-...-9c342c4 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2021 License: Apache-2.0, Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BinaryName string
	Version    string
	GitCommit  string
)
View Source
var (
	ConfigFile string
)

Functions

func ParseConfig

func ParseConfig(cfg string)

func VersionMsg

func VersionMsg() string

Types

type GlobalConfig

type GlobalConfig struct {
	Debug     bool        `json:"debug"`
	Hosts     string      `json:"hosts"`
	Database  string      `json:"database"`
	MaxConns  int         `json:"maxConns"`
	MaxIdle   int         `json:"maxIdle"`
	Listen    string      `json:"listen"`
	Trustable []string    `json:"trustable"`
	Http      *HttpConfig `json:"http"`
}

func Config

func Config() *GlobalConfig

type HttpConfig

type HttpConfig struct {
	Enabled bool   `json:"enabled"`
	Listen  string `json:"listen"`
}

Jump to

Keyboard shortcuts

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