Documentation ¶
Index ¶
- type AFastHandler
- type AFastMiddleware
- type AFastView
- type AFastWebsocket
- type AFastWebsocketSender
- type Address
- type App
- func (a *App) Delete(path string, handler AFastHandler, middlewares ...AFastMiddleware)
- func (a *App) Get(path string, handler AFastHandler, middlewares ...AFastMiddleware)
- func (a *App) Group(path string, middlewares ...AFastMiddleware)
- func (a *App) Listen(addr Address)
- func (a *App) Map() string
- func (a *App) MapJson() string
- func (a *App) Patch(path string, handler AFastHandler, middlewares ...AFastMiddleware)
- func (a *App) Post(path string, handler AFastHandler, middlewares ...AFastMiddleware)
- func (a *App) Put(path string, handler AFastHandler, middlewares ...AFastMiddleware)
- func (a *App) Run(options Options)
- func (a *App) Use(middlewares ...AFastMiddleware)
- func (a *App) View(path string, v AFastView, end bool, middlewares ...AFastMiddleware)
- func (a *App) Websocket(path string, websocket AFastWebsocket, middlewares ...AFastMiddleware)
- type Handle
- type Options
- type Request
- type Response
- type Router
- func (r *Router) Delete(path string, handler AFastHandler, middlewares ...AFastMiddleware)
- func (r *Router) Get(path string, handler AFastHandler, middlewares ...AFastMiddleware)
- func (r *Router) Group(path string, middlewares ...AFastMiddleware) *Router
- func (r *Router) Index(path string, params *map[string]interface{}) (*Router, *map[string]interface{}, error)
- func (r *Router) Map() string
- func (r *Router) MapJson() string
- func (r *Router) Patch(path string, handler AFastHandler, middlewares ...AFastMiddleware)
- func (r *Router) Post(path string, handler AFastHandler, middlewares ...AFastMiddleware)
- func (r *Router) Put(path string, handler AFastHandler, middlewares ...AFastMiddleware)
- func (r *Router) Use(middlewares ...AFastMiddleware)
- func (r *Router) View(path string, v AFastView, end bool, middlewares ...AFastMiddleware)
- func (r *Router) Websocket(path string, w AFastWebsocket, middlewares ...AFastMiddleware)
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AFastHandler ¶
type AFastMiddleware ¶
type AFastWebsocket ¶
type AFastWebsocket interface { OnError(req *Request, err error) OnConnect(req *Request, sender *AFastWebsocketSender) error OnMessage(req *Request, message string, sender *AFastWebsocketSender) (*string, error) }
type AFastWebsocketSender ¶
type AFastWebsocketSender struct {
// contains filtered or unexported fields
}
func (*AFastWebsocketSender) Close ¶
func (s *AFastWebsocketSender) Close() error
func (*AFastWebsocketSender) Send ¶
func (s *AFastWebsocketSender) Send(message string) error
func (*AFastWebsocketSender) SendJson ¶
func (s *AFastWebsocketSender) SendJson(data interface{}) error
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) Delete ¶
func (a *App) Delete(path string, handler AFastHandler, middlewares ...AFastMiddleware)
func (*App) Get ¶
func (a *App) Get(path string, handler AFastHandler, middlewares ...AFastMiddleware)
func (*App) Group ¶
func (a *App) Group(path string, middlewares ...AFastMiddleware)
func (*App) Patch ¶
func (a *App) Patch(path string, handler AFastHandler, middlewares ...AFastMiddleware)
func (*App) Post ¶
func (a *App) Post(path string, handler AFastHandler, middlewares ...AFastMiddleware)
func (*App) Put ¶
func (a *App) Put(path string, handler AFastHandler, middlewares ...AFastMiddleware)
func (*App) Use ¶
func (a *App) Use(middlewares ...AFastMiddleware)
func (*App) View ¶
func (a *App) View(path string, v AFastView, end bool, middlewares ...AFastMiddleware)
func (*App) Websocket ¶
func (a *App) Websocket(path string, websocket AFastWebsocket, middlewares ...AFastMiddleware)
type Request ¶
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func (*Router) Delete ¶
func (r *Router) Delete(path string, handler AFastHandler, middlewares ...AFastMiddleware)
func (*Router) Get ¶
func (r *Router) Get(path string, handler AFastHandler, middlewares ...AFastMiddleware)
func (*Router) Patch ¶
func (r *Router) Patch(path string, handler AFastHandler, middlewares ...AFastMiddleware)
func (*Router) Post ¶
func (r *Router) Post(path string, handler AFastHandler, middlewares ...AFastMiddleware)
func (*Router) Put ¶
func (r *Router) Put(path string, handler AFastHandler, middlewares ...AFastMiddleware)
func (*Router) Use ¶
func (r *Router) Use(middlewares ...AFastMiddleware)
func (*Router) View ¶
func (r *Router) View(path string, v AFastView, end bool, middlewares ...AFastMiddleware)
func (*Router) Websocket ¶
func (r *Router) Websocket(path string, w AFastWebsocket, middlewares ...AFastMiddleware)
Click to show internal directories.
Click to hide internal directories.