Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ForceStopTimeout = 5 * time.Second
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Host string `json:"host" yaml:"host"`
Port int `json:"port" yaml:"port"`
ApiRequestTimeout int `json:"api_request_timeout" yaml:"api_request_timeout"`
DevMod bool `json:"dev_mod" yaml:"dev_mod"`
EnableCORS bool `json:"enable_cors" yaml:"enable_cors"`
RestartOnFail bool `json:"restart_on_fail" yaml:"restart_on_fail"`
}
Config is a parameters for `http.Server`.
type Server ¶
type Server struct {
Name string
Config Config
GetConfig func() Config
GetRouter func(*logrus.Entry, Config) http.Handler
// contains filtered or unexported fields
}
Server worker object
func (*Server) RestartOnFail ¶
RestartOnFail property for Chief
Click to show internal directories.
Click to hide internal directories.