Versions in this module Expand all Collapse all v0 v0.0.1 Feb 13, 2021 Changes in this version + func AppAPIDocument() *fiber.App + func AppMetricsPrometheus(mainApp *fiber.App) *fiber.App + func MappingStandard(code int, dataList interface{}, responsePagination *ResponsePagination) (response ResponseDataList, err *Error) + func MustError(err error, str ...string) + type APIHTTP struct + func NewAPIHTTP() *APIHTTP + func (api *APIHTTP) HandlerLogic(handler HandlerLogic) + func (api *APIHTTP) MappingResponse(handler MappingResponse) + func (api *APIHTTP) OnPostHandler(handler OnPostHandler) + func (api *APIHTTP) OnPreAuth(handler Handler) + func (api *APIHTTP) OnPreHandler(handler OnPreHandler) + func (api *APIHTTP) OnPreResponse(handler OnPreResponse) + func (api *APIHTTP) ParseRequest(handler ParseRequest) + func (api *APIHTTP) SendResponse(handler SendResponse) + func (api *APIHTTP) SetHandlerByPassLifeCycle(handler fiber.Handler) + func (api *APIHTTP) SetupHandlerHTTP(service interface{}) fiber.Handler + func (api *APIHTTP) ValidateAuth(handler Handler) + func (api *APIHTTP) ValidateHeaders(handler Handler) + func (api *APIHTTP) ValidateParams(handler Handler) + func (api *APIHTTP) ValidateQuery(handler Handler) + func (api *APIHTTP) ValidateRequest(handler ValidateRequest) + func (api *APIHTTP) ValidateResponse(handler ValidateResponse) + type Context struct + Ctx *fiber.Ctx + Service interface{} + State map[string]interface{} + type Error struct + Code int + Error error + type Handler = func(context *Context) (err *Error) + type HandlerLogic = func(context *Context, requestValidated interface{}) (code int, responseRaw interface{}, responsePagination *ResponsePagination, ...) + type InterfaceClose interface + Close func() error + type MappingResponse = func(context *Context, code int, responseRaw interface{}, ...) (codeOut int, responseMapping interface{}, ...) + type MappingResponseStandard = func(context *Context, code int, responseRaw interface{}, ...) (codeOut int, responseMapping interface{}, err *Error) + type MicroService struct + func NewMicroService(app *fiber.App, path string, service interface{}) *MicroService + func (ms *MicroService) Add(method string, path string, api *APIHTTP) + func (ms *MicroService) Delete(path string, api *APIHTTP) + func (ms *MicroService) Get(path string, api *APIHTTP) + func (ms *MicroService) Patch(path string, api *APIHTTP) + func (ms *MicroService) Post(path string, api *APIHTTP) + func (ms *MicroService) Put(path string, api *APIHTTP) + type OnPostHandler = func(context *Context, code int, responseRawIn interface{}, ...) (codeOut int, responseRawOut interface{}, ...) + type OnPreHandler = func(context *Context, requestValidatedIn interface{}) (requestValidatedOut interface{}, err *Error) + type OnPreResponse = func(context *Context, code int, requestValidatedIn interface{}) (codeOut int, requestValidatedOut interface{}, err *Error) + type ParseRequest = func(context *Context) (requestMapping interface{}, err *Error) + type Portal struct + func NewPortal() *Portal + func (pt *Portal) AppendApp(app *fiber.App, port string) + func (pt *Portal) AppendInterfaceClose(iList ...interface{}) + func (pt *Portal) StartServer() + type RequestPagination struct + Page int + PageSize int + type ResponseDataList struct + Data interface{} + Message string + ResponseError *ResponseError + ResponsePagination *ResponsePagination + Success bool + type ResponseError struct + Message string + type ResponsePagination struct + ItemCount int + Page int + PageCount int + PageSize int + TotalCount int + type SendResponse = func(context *Context, code int, requestValidated interface{}) (err *Error) + type ValidateRequest = func(context *Context, requestMapping interface{}) (requestValidated interface{}, err *Error) + type ValidateResponse = func(context *Context, code int, responseMapping interface{}, ...) (codeOut int, responseValidated interface{}, ...)