Documentation ¶
Index ¶
- type DataResponse
- type ErrorResponse
- type IndexResponse
- type Server
- type WebServer
- func (w *WebServer) ArtHandler(ctx *fasthttp.RequestCtx)
- func (w *WebServer) CatHandler(ctx *fasthttp.RequestCtx)
- func (w *WebServer) ErrorResponse(ctx *fasthttp.RequestCtx, reason string)
- func (w *WebServer) IndexHandler(ctx *fasthttp.RequestCtx)
- func (w *WebServer) Start(ip string, port int, api string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataResponse ¶
type ErrorResponse ¶
type IndexResponse ¶
type WebServer ¶
type WebServer struct {
// contains filtered or unexported fields
}
func (*WebServer) ArtHandler ¶
func (w *WebServer) ArtHandler(ctx *fasthttp.RequestCtx)
ArtHandler get posts handler
func (*WebServer) CatHandler ¶
func (w *WebServer) CatHandler(ctx *fasthttp.RequestCtx)
CatHandler get categories handler
func (*WebServer) ErrorResponse ¶
func (w *WebServer) ErrorResponse(ctx *fasthttp.RequestCtx, reason string)
ErrorResponse send error response
func (*WebServer) IndexHandler ¶
func (w *WebServer) IndexHandler(ctx *fasthttp.RequestCtx)
IndexHandler main server handler
Click to show internal directories.
Click to hide internal directories.