Documentation ¶ Index ¶ type Server func NewServer(config *ServerConfig) *Server func (s *Server) Start(ctx context.Context) error func (s *Server) Stop(ctx context.Context) error type ServerConfig Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Server ¶ type Server struct { // contains filtered or unexported fields } func NewServer ¶ func NewServer(config *ServerConfig) *Server func (*Server) Start ¶ func (s *Server) Start(ctx context.Context) error func (*Server) Stop ¶ func (s *Server) Stop(ctx context.Context) error type ServerConfig ¶ type ServerConfig struct { Handler http.Handler // If EnableACME flag is set Port option is ignored. Port int // If EnableACME is true, then the server will use Let's Encrypt to automatically. EnableACME bool ACMEHosts []string } Source Files ¶ View all Source files server.go Click to show internal directories. Click to hide internal directories.