Documentation ¶
Index ¶
- Constants
- type Config
- type ConfigHandler
- type ConfigRouter
- type Plugin
- type Server
- func (s *Server) Connect(pattern string, handlerFn http.HandlerFunc)
- func (s *Server) Delete(pattern string, handlerFn http.HandlerFunc)
- func (s *Server) Get(pattern string, handlerFn http.HandlerFunc)
- func (s *Server) Group(fn func(r chi.Router))
- func (s *Server) Handle(pattern string, handler http.Handler)
- func (s *Server) HandleFunc(pattern string, handlerFn http.HandlerFunc)
- func (s *Server) Head(pattern string, handlerFn http.HandlerFunc)
- func (s *Server) HttpServer() *http.Server
- func (s *Server) Match(ctx *chi.Context, method string, path string)
- func (s *Server) Method(method string, pattern string, handler http.Handler)
- func (s *Server) MethodFunc(method string, pattern string, handlerFn http.HandlerFunc)
- func (s *Server) Mux() *chi.Mux
- func (s *Server) Options(pattern string, handlerFn http.HandlerFunc)
- func (s *Server) Patch(pattern string, handlerFn http.HandlerFunc)
- func (s *Server) Post(pattern string, handlerFn http.HandlerFunc)
- func (s *Server) Put(pattern string, handlerFn http.HandlerFunc)
- func (s *Server) Route(pattern string, fn func(r chi.Router))
- func (s *Server) Serve(ctx context.Context)
- func (s *Server) Shutdown(ctx context.Context)
- func (s *Server) Trace(pattern string, handlerFn http.HandlerFunc)
- func (s *Server) Use(middlewares ...func(http.Handler) http.Handler)
- func (s *Server) With(middlewares ...func(http.Handler) http.Handler) chi.Router
Constants ¶
View Source
const (
PluginsRoot = root + ".plugins"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Middlewares []func(http.Handler) http.Handler Handlers []ConfigHandler Routes []ConfigRouter }
type ConfigHandler ¶
type ConfigRouter ¶
type ConfigRouter struct { Method string HandlerFunc http.HandlerFunc Pattern string }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServerWithConfigPath ¶
func NewServerWithOptions ¶
func (*Server) HandleFunc ¶
func (s *Server) HandleFunc(pattern string, handlerFn http.HandlerFunc)
func (*Server) HttpServer ¶
func (*Server) MethodFunc ¶
func (s *Server) MethodFunc(method string, pattern string, handlerFn http.HandlerFunc)
Click to show internal directories.
Click to hide internal directories.