config

package
v0.0.0-...-ab065fd Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Types

type Config

type Config struct {
	HttpConf *HttpConfig
	LogConf  *LogConfig
	EtcdConf *EtcdConfig
}

func ConfigInstance

func ConfigInstance() *Config

type EtcdConfig

type EtcdConfig struct {
	Addrs   []string
	Timeout int
}

type HttpConfig

type HttpConfig struct {
	Port int
}

type LogConfig

type LogConfig struct {
	Name          string
	LogDir        string
	Level         int32
	OpenAccessLog bool
}

Jump to

Keyboard shortcuts

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