Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
func (*Server) ListenAndRegisterSignalHandler ¶
type ServerConfig ¶
type ServerConfig struct { Address string `toml:"address"` CertPath string `toml:"cert_path"` KeyPath string `toml:"key_path"` }
func (*ServerConfig) RegisterFlags ¶
func (c *ServerConfig) RegisterFlags(f *flag.FlagSet, prefix string, opts ...Option)
func (*ServerConfig) UseCommonRoutes ¶
func (c *ServerConfig) UseCommonRoutes(mux *http.ServeMux, public bool)
Click to show internal directories.
Click to hide internal directories.