Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ForceStopTimeout = 5 * time.Second // nolint:gochecknoglobals
ForceStopTimeout ...
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Host string `json:"host" yaml:"host" mapstructure:"api.host"` Port int `json:"port" yaml:"port" mapstructure:"api.port"` ApiRequestTimeout int `json:"api_request_timeout" yaml:"api_request_timeout" mapstructure:"api.api_request_timeout"` // nolint:golint,stylecheck DevMod bool `json:"dev_mod" yaml:"dev_mod" mapstructure:"api.dev_mod"` EnableCORS bool `json:"enable_cors" yaml:"enable_cors" mapstructure:"api.enable_cors"` RestartOnFail bool `json:"restart_on_fail" yaml:"restart_on_fail" mapstructure:"api.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.