m_config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetDefaultConfig

func SetDefaultConfig(conf *Conf)

Types

type Conf

type Conf struct {
	Server ConfigServer
}

func ConfigLoad

func ConfigLoad(path string, root string, f func(conf *Conf)) (Conf, error)

type ConfigServer

type ConfigServer struct {
	Local        bool
	Port         int
	RemoteServer string
	MonitorPort  int

	Cipher   string
	Username string
	Password string

	// settings of communicate with http client
	ClientReadTimeout       int // read timeout, in seconds
	ClientWriteTimeout      int // read timeout, in seconds
	GracefulShutdownTimeout int // graceful shutdown timeout, in seconds

	MaxIdle int
	MaxCpus int
}

func (*ConfigServer) SetDefaultConfig

func (cfg *ConfigServer) SetDefaultConfig()

Jump to

Keyboard shortcuts

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