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 ¶
func NewNextInvoker ¶
func NewNextInvoker() *NextInvoker
Click to show internal directories.
Click to hide internal directories.