Versions in this module Expand all Collapse all v0 v0.1.0 Oct 24, 2021 Changes in this version + const HTTP_METHOD_GET + const HTTP_METHOD_POST + var ErrBadMethod error = errors.New("api.RegisterApiEndpoint(): bad method") + var ErrNotAllowDirectFuncReg error = errors.New("api.RegisterApiEndpoint(): no direct handler func registration is allowed") + var ErrRepeatGetPath error = errors.New("api.RegisterApiEndpoint(): repeated path for GET method") + var ErrRepeatPostPath error = errors.New("api.RegisterApiEndpoint(): repeated path for POST method") + func ExportHandlerMaps() (getMap map[string]*gin.HandlerFunc, postMap map[string]*gin.HandlerFunc) + func ImportToGinEngine(router *gin.Engine, urlPath string) + func RegisterApiEndpoint(method uint, relativePath string, handler *gin.HandlerFunc) error + func RegisterApiEndpointJSON(method uint, relativePath string, handler HandlerFuncJSON) error + type HandlerFuncJSON func(*LessContext) (status int, json gin.H) + type LessContext struct + Request *http.Request