Documentation
¶
Index ¶
Constants ¶
View Source
const ModName = "govern"
ModName ..
Variables ¶
View Source
var ( // DefaultServeMux ... DefaultServeMux = http.NewServeMux() )
Functions ¶
Types ¶
type Config ¶
type Config struct {
Host string
Port int
Network string `json:"network" toml:"network"`
Enable bool
// ServiceAddress service address in registry info, default to 'Host:Port'
ServiceAddress string
// contains filtered or unexported fields
}
Config ...
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig represents default config User should construct config base on DefaultConfig
Click to show internal directories.
Click to hide internal directories.