Documentation ¶
Index ¶
- Variables
- func NewCustomValidator() *customValidator
- func NewEcho(h *Handler) *echo.Echo
- type Handler
- func (h *Handler) CreatePrice(c echo.Context) error
- func (h *Handler) CreateUser(c echo.Context) error
- func (h *Handler) DeletePrice(c echo.Context) error
- func (h *Handler) FindPrice(c echo.Context) error
- func (h *Handler) FindPrices(c echo.Context) error
- func (h *Handler) GenToken(c echo.Context) error
- func (h *Handler) UpdatePrice(c echo.Context) error
- type JwtCustomClaims
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // 400 ErrorAlreadyRegistered = errors.New("already registered") ErrorIDCannotRequest = errors.New("ID cannot be requested") ErrorIDUnchangeable = errors.New("ID is unchangeable") // 401 ErrorAuthenticationFailed = errors.New("authentication failed") // 404 ErrorNotFound = errors.New("not found") )
Functions ¶
func NewCustomValidator ¶
func NewCustomValidator() *customValidator
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) CreateUser ¶ added in v1.0.6
ユーザの登録
type JwtCustomClaims ¶
type JwtCustomClaims struct { jwt.RegisteredClaims UserId uint }
Click to show internal directories.
Click to hide internal directories.