http

package
v0.0.0-...-984c388 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEcho

func NewEcho(cfg Config, mapper *ControllerMapper) *echo.Echo

NewEcho builds a pre-configured and ready-to-use echo.Echo instance.

Types

type CardController

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

func NewCardController

func NewCardController(s card.Service) CardController

func (CardController) MapRoutes

func (u CardController) MapRoutes(_ *echo.Echo)

func (CardController) MapVersionedRoutes

func (u CardController) MapVersionedRoutes(g *echo.Group)

type Config

type Config struct {
	ListenAddress             string
	RootPathFormat            string
	MaxRequestBodySize        string
	MaxRate                   float64
	GracefulShutdownThreshold time.Duration
}

func NewConfig

func NewConfig() Config

type ContactController

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

func NewContactController

func NewContactController(s contact.Service) ContactController

func (ContactController) MapRoutes

func (u ContactController) MapRoutes(_ *echo.Echo)

func (ContactController) MapVersionedRoutes

func (u ContactController) MapVersionedRoutes(g *echo.Group)

type Controller

type Controller interface {
	MapRoutes(e *echo.Echo)
	MapVersionedRoutes(g *echo.Group)
}

type ControllerMapper

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

func NewControllerMapper

func NewControllerMapper(cfg coinlog.Config, httpCfg Config) *ControllerMapper

func (*ControllerMapper) Add

func (h *ControllerMapper) Add(cc ...Controller)

func (*ControllerMapper) RegisterRoutes

func (h *ControllerMapper) RegisterRoutes(e *echo.Echo)

type FinancialAccountController

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

func (FinancialAccountController) MapRoutes

func (f FinancialAccountController) MapRoutes(_ *echo.Echo)

func (FinancialAccountController) MapVersionedRoutes

func (f FinancialAccountController) MapVersionedRoutes(g *echo.Group)

type HealthcheckController

type HealthcheckController struct{}

func NewHealthcheckController

func NewHealthcheckController() HealthcheckController

func (HealthcheckController) MapRoutes

func (l HealthcheckController) MapRoutes(e *echo.Echo)

func (HealthcheckController) MapVersionedRoutes

func (l HealthcheckController) MapVersionedRoutes(_ *echo.Group)

type UserController

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

func NewUserController

func NewUserController(s user.Service) UserController

func (UserController) MapRoutes

func (u UserController) MapRoutes(_ *echo.Echo)

func (UserController) MapVersionedRoutes

func (u UserController) MapVersionedRoutes(g *echo.Group)

Jump to

Keyboard shortcuts

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