controllers

package
v0.0.0-...-bf79d3d Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AuthLoginRequestJSON    = `{"username": "someusername", "password": "password"}`
	RefreshTokenRequestJSON = `{"refreshToken": "refresh.token"}`
	CreateBookRequestJSON   = `{"title": "some title", "author": "some author"}`
)
View Source
const (
	HeaderAuthorizationBearer = "Bearer"
)

Variables

This section is empty.

Functions

func TimeoutErrorHandler

func TimeoutErrorHandler(err error, c echo.Context)

func TimeoutSkipper

func TimeoutSkipper(c echo.Context) bool

func WireControllers

func WireControllers(e *echo.Echo)

Types

type AuthController

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

type AuthMiddleware

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

func NewAuthMiddleware

func NewAuthMiddleware(tokensService services.TokensService, endpointsConfigService configuration.EndpointsConfigService) *AuthMiddleware

func (*AuthMiddleware) Apply

func (s *AuthMiddleware) Apply(e *echo.Echo)

func (*AuthMiddleware) CheckRequestAuthentication

func (s *AuthMiddleware) CheckRequestAuthentication(next echo.HandlerFunc) echo.HandlerFunc

type BooksController

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

type ContextEnricherMiddleware

type ContextEnricherMiddleware struct{}

func NewContextEnricherMiddleware

func NewContextEnricherMiddleware() *ContextEnricherMiddleware

func (*ContextEnricherMiddleware) Apply

func (s *ContextEnricherMiddleware) Apply(e *echo.Echo)

func (*ContextEnricherMiddleware) Handle

func (s *ContextEnricherMiddleware) Handle(next echo.HandlerFunc) echo.HandlerFunc

type HealthController

type HealthController struct{}

type NextInvoker

type NextInvoker struct {
	WasNextInvoked bool
	Next           func(ctx echo.Context) error
}

func NewNextInvoker

func NewNextInvoker() *NextInvoker

Jump to

Keyboard shortcuts

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