Documentation ¶
Index ¶
- Variables
- 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 HandlerConfig
- 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 ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(s service.Service, config *HandlerConfig) *Handler
func (*Handler) CreateUser ¶ added in v1.0.6
ユーザの登録
type HandlerConfig ¶ added in v1.2.2
type JwtCustomClaims ¶
type JwtCustomClaims struct { jwt.RegisteredClaims UserId uint }
Click to show internal directories.
Click to hide internal directories.