Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultPort = 2333 MinimalPort = 1024 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Host string `yaml:"host" json:"host"` Port int `yaml:"port" json:"port"` Enabled bool `yaml:"enabled" json:"enabled"` EnablePProf bool `yaml:"enablePprof" json:"enablePprof"` XXX map[string]interface{} `yaml:",inline"` }
func (*Config) UnmarshalYAML ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(config Config, write *service.WriteService, read *service.ReadService) *Server
func (*Server) Stop ¶
func (s *Server) Stop()
Stop tries to shutdown the HTTP server gracefully TODO: it seems after pprof is enabled, it can't stop gracefully https://gist.github.com/peterhellberg/38117e546c217960747aacf689af3dc2
Click to show internal directories.
Click to hide internal directories.