Documentation
¶
Index ¶
Constants ¶
View Source
const ServerThreadingDedicated = "dedicated"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoggerConf ¶
type MetricsConf ¶
type NetConf ¶
type NetConf struct { HTTPAddr string `yaml:"httpaddr"` HTTPThreading string `yaml:"http_threading"` // "dedicated" or "shared" RPCAddr string `yaml:"rpcaddr"` RPCThreading string `yaml:"rpc_threading"` // "dedicated" or "shared" UnixRPCAddr string `yaml:"urpcaddr"` UnixRPCThreading string `yaml:"urpc_threading"` // "dedicated" or "shared" WebRoot string `yaml:"webroot"` Security bool `yaml:"security"` HttpReadTimeoutSec int `yaml:"http_read_timeout,omitempty"` HttpWriteTimeoutSec int `yaml:"http_write_timeout,omitempty"` MaxUpdatesSizeBytes uint `yaml:"maxupdatessize,omitempty"` }
type ServerConfig ¶
type ServerConfig struct { Storage StorageConf `yaml:"storage"` Net NetConf `yaml:"net"` Logger LoggerConf `yaml:"logger"` System SystemConf `yaml:"system"` Debug DebugConf `yaml:"debug"` Metrics MetricsConf `yaml:"metrics"` }
func DefaultServerConfig ¶
func DefaultServerConfig() *ServerConfig
func (*ServerConfig) GetYamlString ¶
func (cfg *ServerConfig) GetYamlString() (string, error)
type StorageConf ¶
type SystemConf ¶
Click to show internal directories.
Click to hide internal directories.