handlers

package
v1.0.0-alpha.11 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountHTTPRequestHandler

type AccountHTTPRequestHandler interface {
	GetAllAccounts(c *gin.Context)
	AddAccount(c *gin.Context)
	FindAccountByID(c *gin.Context, id v1.ID)
}

type AccountHandler

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

func NewAccountHandler

func NewAccountHandler(as input.AccountService) *AccountHandler

func (*AccountHandler) AddAccount

func (h *AccountHandler) AddAccount(ctx *gin.Context)

func (*AccountHandler) FindAccountByID

func (h *AccountHandler) FindAccountByID(ctx *gin.Context, _ v1.ID)

func (*AccountHandler) GetAllAccounts

func (h *AccountHandler) GetAllAccounts(ctx *gin.Context)

type HandlerDelegate

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

func NewHandlerDelegate

func NewHandlerDelegate(swaggerHdl SwaggerHTTPRequestHandler, accountHdl AccountHTTPRequestHandler) *HandlerDelegate

func (*HandlerDelegate) AddAccount

func (h *HandlerDelegate) AddAccount(ctx *gin.Context)

func (*HandlerDelegate) FindAccountByID

func (h *HandlerDelegate) FindAccountByID(ctx *gin.Context, id v1.ID)

func (*HandlerDelegate) GetAllAccounts

func (h *HandlerDelegate) GetAllAccounts(ctx *gin.Context)

func (*HandlerDelegate) GetSwagger

func (h *HandlerDelegate) GetSwagger(ctx *gin.Context)

type SwaggerHTTPRequestHandler

type SwaggerHTTPRequestHandler interface {
	GetSwagger(c *gin.Context)
}

type SwaggerHandler

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

func NewSwaggerHandler

func NewSwaggerHandler(log logger.Logger) *SwaggerHandler

func (*SwaggerHandler) GetSwagger

func (h *SwaggerHandler) GetSwagger(ctx *gin.Context)

Jump to

Keyboard shortcuts

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