Documentation ¶
Index ¶
- type FilterFunc
- type Option
- type Server
- func (s *Server) Endpoint() (*url.URL, error)
- func (s *Server) Handle(path string, h http.Handler)
- func (s *Server) HandleFunc(path string, h http.HandlerFunc)
- func (s *Server) HandleFuncPrefix(prefix string, h http.HandlerFunc)
- func (s *Server) HandlePrefix(prefix string, h http.Handler)
- func (s *Server) Name() string
- func (s *Server) Start(ctx context.Context) error
- func (s *Server) Stop(ctx context.Context) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FilterFunc ¶
func FilterChain ¶
func FilterChain(filters ...FilterFunc) FilterFunc
type Server ¶
func (*Server) HandleFunc ¶
func (s *Server) HandleFunc(path string, h http.HandlerFunc)
HandleFunc registers a new route with a matcher for the URL path.
func (*Server) HandleFuncPrefix ¶
func (s *Server) HandleFuncPrefix(prefix string, h http.HandlerFunc)
HandleFuncPrefix registers a new route with a matcher for the URL path prefix.
func (*Server) HandlePrefix ¶
HandlePrefix registers a new route with a matcher for the URL path prefix.
Click to show internal directories.
Click to hide internal directories.