Documentation
¶
Index ¶
- type Context
- type HandlerFunc
- type InitHttpServerFunc
- type Option
- type Options
- type Server
- func (s *Server) AnyEx(path string, handlers ...HandlerFunc) *Server
- func (s *Server) DeleteEx(path string, handlers ...HandlerFunc) *Server
- func (s *Server) GetEx(path string, handlers ...HandlerFunc) *Server
- func (s *Server) HandleEx(method, path string, handlers ...HandlerFunc) *Server
- func (s *Server) HeadEx(path string, handlers ...HandlerFunc) *Server
- func (s *Server) Init(opts ...Option)
- func (s *Server) MatchEx(methods []string, path string, handlers ...HandlerFunc) *Server
- func (s *Server) OptionsEx(path string, handlers ...HandlerFunc) *Server
- func (s *Server) PatchEx(path string, handlers ...HandlerFunc) *Server
- func (s *Server) PostEx(path string, handlers ...HandlerFunc) *Server
- func (s *Server) PutEx(path string, handlers ...HandlerFunc) *Server
- func (s *Server) Start() error
- func (s *Server) Stop() error
- func (s *Server) UseEx(middlewares ...HandlerFunc)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
func (*Context) ShouldBind ¶
func (*Context) ShouldBindQuery ¶
func (*Context) ShouldBindUri ¶
type HandlerFunc ¶
type HandlerFunc func(*Context)
type InitHttpServerFunc ¶
type Option ¶
type Option func(*Options)
func InitHttpServer ¶
func InitHttpServer(f InitHttpServerFunc) Option
type Server ¶
func (*Server) HandleEx ¶
func (s *Server) HandleEx(method, path string, handlers ...HandlerFunc) *Server
func (*Server) MatchEx ¶
func (s *Server) MatchEx(methods []string, path string, handlers ...HandlerFunc) *Server
func (*Server) UseEx ¶
func (s *Server) UseEx(middlewares ...HandlerFunc)
Click to show internal directories.
Click to hide internal directories.