Documentation ¶
Index ¶
- type APILifeCycle
- func (api *APILifeCycle) AppendMiddlewareEndList(handler OnPreResponse)
- func (api *APILifeCycle) AppendMiddlewareStartList(handler HandlerCycle)
- func (apiLifeCycle *APILifeCycle) CheckerLifeCycle(apiMiddleware *APILifeCycle, mappingStandardResponse MappingStandardResponse, ...)
- func (api *APILifeCycle) GetHandlerLogic() HandlerLogic
- func (api *APILifeCycle) GetMappingResponse() MappingResponse
- func (api *APILifeCycle) GetMappingStandardError() MappingStandardError
- func (api *APILifeCycle) GetMappingStandardResponse() MappingStandardResponse
- func (api *APILifeCycle) GetOnPostAuth() HandlerCycle
- func (api *APILifeCycle) GetOnPostHandler() OnPostHandler
- func (api *APILifeCycle) GetOnPreAuth() HandlerCycle
- func (api *APILifeCycle) GetOnPreEndList() OnPreResponse
- func (api *APILifeCycle) GetOnPreHandler() OnPreHandler
- func (api *APILifeCycle) GetOnPreResponse() OnPreResponse
- func (api *APILifeCycle) GetOnPreStartList() HandlerCycle
- func (api *APILifeCycle) GetOnStart() HandlerCycle
- func (api *APILifeCycle) GetParseLanguage() HandlerCycle
- func (api *APILifeCycle) GetParseRequest() ParseRequest
- func (api *APILifeCycle) GetSendResponse() SendResponse
- func (api *APILifeCycle) GetValidateAuth() ValidateAuth
- func (api *APILifeCycle) GetValidateHeader() HandlerCycle
- func (api *APILifeCycle) GetValidateParam() ValidateParam
- func (api *APILifeCycle) GetValidateQuery() ValidateQuery
- func (api *APILifeCycle) GetValidateRequest() ValidateRequest
- func (api *APILifeCycle) GetValidateResponse() ValidateResponse
- func (api *APILifeCycle) GetValidateRole() ValidateRole
- func (api *APILifeCycle) HandlerLifeCycle(context *godd.Context) (*APIResponse, error)
- func (api *APILifeCycle) HandlerLogic(handler HandlerLogic)
- func (api *APILifeCycle) MappingResponse(handler MappingResponse)
- func (api *APILifeCycle) MappingStandardError(handler MappingStandardError)
- func (api *APILifeCycle) MappingStandardResponse(handler MappingStandardResponse)
- func (api *APILifeCycle) OnPostAuth(handler HandlerCycle)
- func (api *APILifeCycle) OnPostHandler(handler OnPostHandler)
- func (api *APILifeCycle) OnPreAuth(handler HandlerCycle)
- func (api *APILifeCycle) OnPreEndList(handler OnPreResponse)
- func (api *APILifeCycle) OnPreHandler(handler OnPreHandler)
- func (api *APILifeCycle) OnPreResponse(handler OnPreResponse)
- func (api *APILifeCycle) OnPreStartList(handler HandlerCycle)
- func (api *APILifeCycle) OnStart(handler HandlerCycle)
- func (api *APILifeCycle) ParseLanguage(handler HandlerCycle)
- func (api *APILifeCycle) ParseRequest(handler ParseRequest)
- func (api *APILifeCycle) SendResponse(handler SendResponse)
- func (api *APILifeCycle) SetHandlerByPassLifeCycle(handler HandlerByPass)
- func (api *APILifeCycle) ValidateAuth(handler ValidateAuth)
- func (api *APILifeCycle) ValidateHeader(handler HandlerCycle)
- func (api *APILifeCycle) ValidateParam(handler ValidateParam)
- func (api *APILifeCycle) ValidateQuery(handler ValidateQuery)
- func (api *APILifeCycle) ValidateRequest(handler ValidateRequest)
- func (api *APILifeCycle) ValidateResponse(handler ValidateResponse)
- func (api *APILifeCycle) ValidateRole(handler ValidateRole)
- type APIResponse
- type EncodeError
- type HandlerByPass
- type HandlerCycle
- type HandlerLogic
- type MappingResponse
- type MappingStandardError
- type MappingStandardResponse
- type OnPostHandler
- type OnPreHandler
- type OnPreResponse
- type ParseRequest
- type SendResponse
- type ValidateAuth
- type ValidateParam
- type ValidateQuery
- type ValidateRequest
- type ValidateResponse
- type ValidateRole
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APILifeCycle ¶
type APILifeCycle struct {
// contains filtered or unexported fields
}
APILifeCycle Struct
func (*APILifeCycle) AppendMiddlewareEndList ¶
func (api *APILifeCycle) AppendMiddlewareEndList(handler OnPreResponse)
AppendMiddlewareEndList func
func (*APILifeCycle) AppendMiddlewareStartList ¶
func (api *APILifeCycle) AppendMiddlewareStartList(handler HandlerCycle)
AppendMiddlewareStartList func
func (*APILifeCycle) CheckerLifeCycle ¶
func (apiLifeCycle *APILifeCycle) CheckerLifeCycle(apiMiddleware *APILifeCycle, mappingStandardResponse MappingStandardResponse, mappingStandardError MappingStandardError)
func (*APILifeCycle) GetHandlerLogic ¶
func (api *APILifeCycle) GetHandlerLogic() HandlerLogic
GetHandlerLogic Get
func (*APILifeCycle) GetMappingResponse ¶
func (api *APILifeCycle) GetMappingResponse() MappingResponse
GetMappingResponse Get
func (*APILifeCycle) GetMappingStandardError ¶
func (api *APILifeCycle) GetMappingStandardError() MappingStandardError
GetMappingStandardError Get
func (*APILifeCycle) GetMappingStandardResponse ¶
func (api *APILifeCycle) GetMappingStandardResponse() MappingStandardResponse
GetMappingStandardResponse Get
func (*APILifeCycle) GetOnPostAuth ¶
func (api *APILifeCycle) GetOnPostAuth() HandlerCycle
GetOnPostAuth func
func (*APILifeCycle) GetOnPostHandler ¶
func (api *APILifeCycle) GetOnPostHandler() OnPostHandler
GetOnPostHandler func
func (*APILifeCycle) GetOnPreAuth ¶
func (api *APILifeCycle) GetOnPreAuth() HandlerCycle
GetOnPreAuth Get
func (*APILifeCycle) GetOnPreEndList ¶
func (api *APILifeCycle) GetOnPreEndList() OnPreResponse
GetOnPreEndList Get
func (*APILifeCycle) GetOnPreHandler ¶
func (api *APILifeCycle) GetOnPreHandler() OnPreHandler
GetOnPreHandler Get
func (*APILifeCycle) GetOnPreResponse ¶
func (api *APILifeCycle) GetOnPreResponse() OnPreResponse
GetOnPreResponse func
func (*APILifeCycle) GetOnPreStartList ¶
func (api *APILifeCycle) GetOnPreStartList() HandlerCycle
GetOnPreStartList Get
func (*APILifeCycle) GetParseLanguage ¶
func (api *APILifeCycle) GetParseLanguage() HandlerCycle
GetParseLanguage Get
func (*APILifeCycle) GetParseRequest ¶
func (api *APILifeCycle) GetParseRequest() ParseRequest
GetParseRequest Get
func (*APILifeCycle) GetSendResponse ¶
func (api *APILifeCycle) GetSendResponse() SendResponse
GetSendResponse Get
func (*APILifeCycle) GetValidateAuth ¶
func (api *APILifeCycle) GetValidateAuth() ValidateAuth
GetValidateAuth Get
func (*APILifeCycle) GetValidateHeader ¶
func (api *APILifeCycle) GetValidateHeader() HandlerCycle
GetValidateHeader Get
func (*APILifeCycle) GetValidateParam ¶
func (api *APILifeCycle) GetValidateParam() ValidateParam
GetValidateParam Get
func (*APILifeCycle) GetValidateQuery ¶
func (api *APILifeCycle) GetValidateQuery() ValidateQuery
GetValidateQuery Get
func (*APILifeCycle) GetValidateRequest ¶
func (api *APILifeCycle) GetValidateRequest() ValidateRequest
GetValidateRequest Get
func (*APILifeCycle) GetValidateResponse ¶
func (api *APILifeCycle) GetValidateResponse() ValidateResponse
GetValidateResponse Get
func (*APILifeCycle) GetValidateRole ¶
func (api *APILifeCycle) GetValidateRole() ValidateRole
GetValidateRole Get
func (*APILifeCycle) HandlerLifeCycle ¶
func (api *APILifeCycle) HandlerLifeCycle(context *godd.Context) (*APIResponse, error)
func (*APILifeCycle) HandlerLogic ¶
func (api *APILifeCycle) HandlerLogic(handler HandlerLogic)
HandlerLogic Set
func (*APILifeCycle) MappingResponse ¶
func (api *APILifeCycle) MappingResponse(handler MappingResponse)
MappingResponse Set
func (*APILifeCycle) MappingStandardError ¶
func (api *APILifeCycle) MappingStandardError(handler MappingStandardError)
MappingStandardError Set
func (*APILifeCycle) MappingStandardResponse ¶
func (api *APILifeCycle) MappingStandardResponse(handler MappingStandardResponse)
MappingStandardResponse Set
func (*APILifeCycle) OnPostAuth ¶
func (api *APILifeCycle) OnPostAuth(handler HandlerCycle)
OnPostAuth Set
func (*APILifeCycle) OnPostHandler ¶
func (api *APILifeCycle) OnPostHandler(handler OnPostHandler)
OnPostHandler func
func (*APILifeCycle) OnPreAuth ¶
func (api *APILifeCycle) OnPreAuth(handler HandlerCycle)
OnPreAuth Set
func (*APILifeCycle) OnPreEndList ¶
func (api *APILifeCycle) OnPreEndList(handler OnPreResponse)
OnPreEndList Set
func (*APILifeCycle) OnPreHandler ¶
func (api *APILifeCycle) OnPreHandler(handler OnPreHandler)
OnPreHandler Set
func (*APILifeCycle) OnPreResponse ¶
func (api *APILifeCycle) OnPreResponse(handler OnPreResponse)
OnPreResponse Set
func (*APILifeCycle) OnPreStartList ¶
func (api *APILifeCycle) OnPreStartList(handler HandlerCycle)
OnPreStartList Set
func (*APILifeCycle) ParseLanguage ¶
func (api *APILifeCycle) ParseLanguage(handler HandlerCycle)
ParseLanguage Set
func (*APILifeCycle) ParseRequest ¶
func (api *APILifeCycle) ParseRequest(handler ParseRequest)
ParseRequest Set
func (*APILifeCycle) SendResponse ¶
func (api *APILifeCycle) SendResponse(handler SendResponse)
SendResponse Set
func (*APILifeCycle) SetHandlerByPassLifeCycle ¶
func (api *APILifeCycle) SetHandlerByPassLifeCycle(handler HandlerByPass)
SetHandlerByPassLifeCycle API
func (*APILifeCycle) ValidateAuth ¶
func (api *APILifeCycle) ValidateAuth(handler ValidateAuth)
ValidateAuth Set
func (*APILifeCycle) ValidateHeader ¶
func (api *APILifeCycle) ValidateHeader(handler HandlerCycle)
ValidateHeader Set
func (*APILifeCycle) ValidateParam ¶
func (api *APILifeCycle) ValidateParam(handler ValidateParam)
ValidateParam Set
func (*APILifeCycle) ValidateQuery ¶
func (api *APILifeCycle) ValidateQuery(handler ValidateQuery)
ValidateQuery Set
func (*APILifeCycle) ValidateRequest ¶
func (api *APILifeCycle) ValidateRequest(handler ValidateRequest)
ValidateRequest Set
func (*APILifeCycle) ValidateResponse ¶
func (api *APILifeCycle) ValidateResponse(handler ValidateResponse)
ValidateResponse Set
func (*APILifeCycle) ValidateRole ¶
func (api *APILifeCycle) ValidateRole(handler ValidateRole)
ValidateRole Set
type APIResponse ¶
type EncodeError ¶
===================================================================== EncodeError Func
type HandlerCycle ¶
HandlerCycle Type
type HandlerLogic ¶
type HandlerLogic = func(context *godd.Context, requestValidatedBody interface{}, requestValidatedParam interface{}, requestValidatedQuery interface{}) (code int, responseRaw interface{}, responsePagination *godd.ResponsePagination, goddErr *godd.Error)
HandlerLogic Type
type MappingResponse ¶
type MappingResponse = func(context *godd.Context, code int, responseRaw interface{}, responsePagination *godd.ResponsePagination) (codeOut int, responseMapping interface{}, responsePaginationOut *godd.ResponsePagination, goddErr *godd.Error)
MappingResponse Type
type MappingStandardError ¶
type MappingStandardError = func(goddErr *godd.Error) (codeOut int, responseError interface{}, goddErrOut *godd.Error)
MappingStandardError Type
type MappingStandardResponse ¶
type MappingStandardResponse = func(context *godd.Context, code int, responseRaw interface{}, responsePagination *godd.ResponsePagination) (codeOut int, responseMapping interface{}, goddErr *godd.Error)
MappingStandardResponse Type
type OnPostHandler ¶
type OnPostHandler = func(context *godd.Context, code int, responseRawIn interface{}, responsePagination *godd.ResponsePagination) (codeOut int, responseRawOut interface{}, responsePaginationOut *godd.ResponsePagination, goddErr *godd.Error)
OnPostHandler Type
type OnPreHandler ¶
type OnPreHandler = func(context *godd.Context, requestValidatedBody interface{}, requestValidatedParam interface{}, requestValidatedQuery interface{}) (requestValidatedBodyOut interface{}, requestValidatedParamOut interface{}, requestValidatedQueryOut interface{}, goddErr *godd.Error)
OnPreHandler Type
type OnPreResponse ¶
type OnPreResponse = func(context *godd.Context, code int, responseStandard interface{}) (codeOut int, responseStandardOut interface{}, goddErr *godd.Error)
OnPreResponse Type
type ParseRequest ¶
type ParseRequest = func(context *godd.Context) (requestMappingBody interface{}, goddErr *godd.Error)
ParseRequest Type
type SendResponse ¶
SendResponse Type
type ValidateAuth ¶
ValidateAuth Type
type ValidateParam ¶
type ValidateParam = func(context *godd.Context) (requestValidatedParam interface{}, goddErr *godd.Error)
ValidateParam Type
type ValidateQuery ¶
type ValidateQuery = func(context *godd.Context) (requestValidatedQuery interface{}, goddErr *godd.Error)
ValidateQuery Type
type ValidateRequest ¶
type ValidateRequest = func(context *godd.Context, requestMappingBody interface{}) (requestValidatedBody interface{}, goddErr *godd.Error)
ValidateRequest Type
type ValidateResponse ¶
type ValidateResponse = func(context *godd.Context, code int, responseMapping interface{}, responsePagination *godd.ResponsePagination) (codeOut int, responseValidated interface{}, responsePaginationOut *godd.ResponsePagination, goddErr *godd.Error)
ValidateResponse Type
Source Files ¶
- 0_001_bypass.go
- 0_002_mapping_response_error.go
- 1_001_on_pre_start_list.go
- 1_002_middleware_start_list.go
- 1_003_on_start.go
- 1_004_parse_language.go
- 2_001_on_pre_auth.go
- 2_002_validate_auth.go
- 2_003_validate_role.go
- 2_004_on_post_auth.go
- 3_001_validate_header.go
- 3_002_validate_param.go
- 3_003_validate_query.go
- 3_004_parse_request.go
- 3_005_validate_request.go
- 4_001_on_pre_handler.go
- 4_002_handler_logic.go
- 4_003_on_post_handler.go
- 5_001_mapping_response.go
- 5_002_validate_response.go
- 5_003_mapping_standard_response.go
- 6_001_on_end_list.go
- 6_002_middleware_end_list.go
- 6_003_on_pre_response.go
- 7_001_send_response.go
- life_cycle.go
- main.go