api

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: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPMappingStandardError added in v0.0.46

func HTTPMappingStandardError(goddErr *godd.Error) (codeOut int, responseError interface{}, goddErrOut *godd.Error)

HTTPMappingStandardError

func HTTPMappingStandardResponse added in v0.0.46

func HTTPMappingStandardResponse(context *godd.Context, code int, responseRaw interface{}, responsePagination *godd.ResponsePagination) (codeOut int, responseMapping interface{}, goddErr *godd.Error)

HTTPMappingStandardResponse

Types

type API added in v0.0.46

type API struct {
	LifeCycle *goddAPILifeCycle.APILifeCycle
	// contains filtered or unexported fields
}

API struct

func New added in v0.0.46

func New() *API

func NewWithInitial added in v0.0.66

func NewWithInitial(context *godd.Context, apiMiddleware *goddAPILifeCycle.APILifeCycle, mappingStandardResponse goddAPILifeCycle.MappingStandardResponse, mappingStandardError goddAPILifeCycle.MappingStandardError) *API

func (*API) HandlerLifeCycle added in v0.0.46

func (api *API) HandlerLifeCycle() godd.Handler

HandlerLifeCycle func

func (*API) Initial added in v0.0.52

func (api *API) Initial(context *godd.Context, apiMiddleware *goddAPILifeCycle.APILifeCycle, mappingStandardResponse goddAPILifeCycle.MappingStandardResponse, mappingStandardError goddAPILifeCycle.MappingStandardError)

Initial API

func (*API) RunLifeCycle added in v0.0.62

func (api *API) RunLifeCycle() (*goddAPILifeCycle.APIResponse, error)

Jump to

Keyboard shortcuts

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