Documentation ¶
Index ¶
- type Context
- type JsonResponse
- type Request
- type Response
- type Server
- func (s *Server) AddPrehandler(fn func(w http.ResponseWriter, r *http.Request) bool)
- func (s *Server) ListenAndServe() error
- func (s *Server) NotFound(w http.ResponseWriter, r *http.Request)
- func (s *Server) Reload() error
- func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)
- func (s *Server) Stop() error
- type StringResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
type Context struct { Config config.Config Request *Request Response *Response // contains filtered or unexported fields }
func NewContext ¶
func (*Context) GetLangShort ¶ added in v1.0.7
type JsonResponse ¶
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func NewResponse ¶
func NewResponse(ctx *Context, w http.ResponseWriter) *Response
func (*Response) SetStatusCode ¶
type StringResponse ¶ added in v1.1.2
Click to show internal directories.
Click to hide internal directories.