request

package
v0.0.0-...-afa1830 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResponseBlob

func ResponseBlob(eCtx echo.Context, data interface{}) error

ResponseBlob ...

func ResponseCreated

func ResponseCreated(eCtx echo.Context, data interface{}) error

ResponseCreated ...

func ResponseNoContent

func ResponseNoContent(eCtx echo.Context, _ interface{}) error

ResponseNoContent ...

func ResponseOK

func ResponseOK(eCtx echo.Context, data interface{}) error

ResponseOK ...

func ResponseRedirectFound

func ResponseRedirectFound(eCtx echo.Context, data interface{}) error

ResponseRedirectFound ...

func ResponseStream

func ResponseStream(eCtx echo.Context, data interface{}) error

ResponseStream ...

Types

type EmptyQuery

type EmptyQuery struct{}

func (*EmptyQuery) BindAndValidate

func (query *EmptyQuery) BindAndValidate(eCtx echo.Context) error

BindAndValidate implements Request.BindAndValidate

type HandlerFactory

type HandlerFactory struct {
	// contains filtered or unexported fields
}

HandlerFactory ...

func NewHandlerFactory

func NewHandlerFactory(authzMdlw echo.MiddlewareFunc) HandlerFactory

NewHandlerFactory ...

func (HandlerFactory) GetAuthzMdlw

func (f HandlerFactory) GetAuthzMdlw() echo.MiddlewareFunc

func (*HandlerFactory) NewACR1

func (f *HandlerFactory) NewACR1(
	subPath string,
	initReq func() Request,
	appFunc func(context.Context, Request) (interface{}, error),
	responseFunc func(echo.Context, interface{}) error,
	afterOpts ...func(echo.Context, interface{}) error,
) (string, echo.HandlerFunc, echo.MiddlewareFunc)

NewACR1 ...

func (*HandlerFactory) NewACR2

func (f *HandlerFactory) NewACR2(
	subPath string,
	initReq func() Request,
	appFunc func(context.Context, Request) (interface{}, error),
	responseFunc func(echo.Context, interface{}) error,
	afterOpts ...func(echo.Context, interface{}) error,
) (string, echo.HandlerFunc, echo.MiddlewareFunc)

NewACR2 ...

func (*HandlerFactory) NewCryptoACR1

func (f *HandlerFactory) NewCryptoACR1(
	subPath string,
	initReq func() Request,
	appFunc func(context.Context, Request) (interface{}, error),
	responseFunc func(echo.Context, interface{}) error,
	afterOpts ...func(echo.Context, interface{}) error,
) (string, echo.HandlerFunc, echo.MiddlewareFunc)

NewCryptoACR1 ...

func (*HandlerFactory) NewCryptoACR2

func (f *HandlerFactory) NewCryptoACR2(
	subPath string,
	initReq func() Request,
	appFunc func(context.Context, Request) (interface{}, error),
	responseFunc func(echo.Context, interface{}) error,
	afterOpts ...func(echo.Context, interface{}) error,
) (string, echo.HandlerFunc, echo.MiddlewareFunc)

NewCryptoACR2 ...

func (*HandlerFactory) NewOptional

func (f *HandlerFactory) NewOptional(
	subPath string,
	initReq func() Request,
	appFunc func(context.Context, Request) (interface{}, error),
	responseFunc func(echo.Context, interface{}) error,
	afterOpts ...func(echo.Context, interface{}) error,
) (string, echo.HandlerFunc, echo.MiddlewareFunc)

NewOptional ...

func (HandlerFactory) NewPublic

func (f HandlerFactory) NewPublic(
	subPath string,
	initReq func() Request,
	appFunc func(context.Context, Request) (interface{}, error),
	responseFunc func(echo.Context, interface{}) error,
	afterOpts ...func(echo.Context, interface{}) error,
) (string, echo.HandlerFunc)

NewPublic ...

type Request

type Request interface {
	BindAndValidate(echo.Context) error
}

Request ...

Jump to

Keyboard shortcuts

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