Versions in this module Expand all Collapse all v1 v1.0.1 Jun 18, 2021 Changes in this version + type Application struct + func App() *Application + type Controller struct + type IController interface + type IMiddleware interface + Handler func() + Next func() + type IRouter interface + Add func(methods, name string, ctrl interface{}, middleware ...string) + GET func(name string, ctrl interface{}, middleware ...string) + Handler func() + POST func(name string, ctrl interface{}, middleware ...string) + type Middleware struct + func (m *Middleware) Next() + type Request struct + RawData string + func NewRequest(req *http.Request) *Request + func (req *Request) GetHeader(key string) string + func (req *Request) Input(key string, defaultVal ...string) string + func (req *Request) Inputs(keys ...string) map[string]string + func (req *Request) ParseJson(result interface{}) error + type Response struct + func NewResponse(writer http.ResponseWriter) *Response + func (res *Response) Fail(code int, message string, data ...interface{}) + func (res *Response) HttpStatus(code int, message ...string) + func (res *Response) OK(data interface{}) + func (res *Response) Resp(data interface{}) + func (res *Response) SetHeader(key, val string) + type Router struct + func (r *Router) Add(method, name string, control interface{}, middleware ...string) + func (r *Router) GET(name string, ctrl interface{}, middleware ...string) + func (r *Router) Group(prefix, ctrl, middleware string, fn func()) + func (r *Router) Handler() + func (r *Router) OPTIONS(name string, ctrl interface{}, middleware ...string) + func (r *Router) POST(name string, ctrl interface{}, middleware ...string) + type Server struct + func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (s *Server) Start() + func (s *Server) Use(o interface{}) + type Wrapper struct + func (ctx *Wrapper) Add(key, val string) + func (ctx *Wrapper) Context(key string, val ...interface{}) (result interface{})