ui

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthRouter

func NewAuthRouter(e *echo.Echo, apiKeyUsecase domain.APIKeyUsecase)

Types

type APIKeyIn

type APIKeyIn struct {
	Name string `json:"name" validate:"required,min=5,max=64"`
}

type APIKeyOut

type APIKeyOut struct {
	ID        string    `json:"id"`
	Name      string    `json:"name"`
	Key       string    `json:"key"`
	CreatedAt time.Time `json:"created_at"`
}

type HTTPError

type HTTPError struct {
	Message string `json:"message"`
}

func (HTTPError) BadRequest

func (e HTTPError) BadRequest() error

func (HTTPError) Conflict

func (e HTTPError) Conflict() error

func (HTTPError) ErrUnprocessableEntity

func (e HTTPError) ErrUnprocessableEntity() error

func (HTTPError) Forbidden

func (e HTTPError) Forbidden() error

func (HTTPError) InternalServerError

func (e HTTPError) InternalServerError() error

TODO: Prefix erros with "Err"

func (HTTPError) NotFound

func (e HTTPError) NotFound() error

func (HTTPError) Unauthorized

func (e HTTPError) Unauthorized() error

Jump to

Keyboard shortcuts

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