Versions in this module Expand all Collapse all v0 v0.3.1 Jun 21, 2021 Changes in this version + const ModName + var DefaultServeMux = http.NewServeMux() + func HandleFunc(pattern string, handler http.HandlerFunc) + type Config struct + Enable bool + Host string + Network string + Port int + ServiceAddress string + func DefaultConfig() *Config + func RawConfig(key string) *Config + func StdConfig(name string) *Config + func (config *Config) Build() *Server + func (config Config) Address() string + type Server struct + func (s *Server) GracefulStop(ctx context.Context) error + func (s *Server) Info() *server.ServiceInfo + func (s *Server) Serve() error + func (s *Server) Stop() error