apilifecycle

package
v0.0.68 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 5, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

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) GetOnStart

func (api *APILifeCycle) GetOnStart() HandlerCycle

GetOnStart 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) OnStart

func (api *APILifeCycle) OnStart(handler HandlerCycle)

OnStart 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 APIResponse struct {
	ContentType string
	Code        int
	Response    interface{}
}

type EncodeError

type EncodeError = func(context *godd.Context, goddErr *godd.Error) (interface{}, error)

===================================================================== EncodeError Func

type HandlerByPass

type HandlerByPass = func(context *godd.Context) error

HandlerByPass Type

type HandlerCycle

type HandlerCycle = func(context *godd.Context) (goddErr *godd.Error)

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

type SendResponse = func(context *godd.Context, code int, responseStandard interface{}) (err error)

SendResponse Type

type ValidateAuth

type ValidateAuth = func(context *godd.Context) (roleData interface{}, goddErr *godd.Error)

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

type ValidateRole

type ValidateRole = func(context *godd.Context, roleData interface{}) (goddErr *godd.Error)

ValidateRole Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL