Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpServer ¶
func NewHttpServer ¶
func NewHttpServer(opts ...ServerOption) *HttpServer
func (*HttpServer) ServeHTTP ¶
func (s *HttpServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
func (*HttpServer) Start ¶
func (s *HttpServer) Start(addr string) error
func (*HttpServer) Use ¶
func (s *HttpServer) Use(mdls ...middleware.Middleware)
type ServerOption ¶
type ServerOption func(server *HttpServer)
func ServerWithTemplateEngine ¶
func ServerWithTemplateEngine(engine template.TemplateEngine) ServerOption
Click to show internal directories.
Click to hide internal directories.