Documentation
¶
Overview ¶
This package is a package that functions to create an http handler.
Index ¶
- type ActivationData
- type ArticleHandlerV1
- type ClassHandlerV1
- type UserHandlerV1
- func (u *UserHandlerV1) ActivationHandler(ctx *gin.Context)
- func (u *UserHandlerV1) ChangePasswordHandler(ctx *gin.Context)
- func (u *UserHandlerV1) CheckAuthHandler(ctx *gin.Context)
- func (u *UserHandlerV1) GetTokenHandler(ctx *gin.Context)
- func (u *UserHandlerV1) RegisterHandler(ctx *gin.Context)
- func (u *UserHandlerV1) UpdateInfoUserHandler(ctx *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivationData ¶
ActivationData struct for save activation data
type ArticleHandlerV1 ¶
type ArticleHandlerV1 struct{}
func NewArticleHandlerV1 ¶
func NewArticleHandlerV1() ArticleHandlerV1
func (ArticleHandlerV1) CreateHandler ¶
func (ArticleHandlerV1) CreateHandler(ctx *gin.Context)
func (ArticleHandlerV1) Delete ¶
func (ArticleHandlerV1) Delete(ctx *gin.Context)
func (ArticleHandlerV1) Detail ¶
func (ArticleHandlerV1) Detail(ctx *gin.Context)
func (ArticleHandlerV1) Get ¶
func (ArticleHandlerV1) Get(ctx *gin.Context)
func (ArticleHandlerV1) Update ¶
func (ArticleHandlerV1) Update(ctx *gin.Context)
type ClassHandlerV1 ¶
type ClassHandlerV1 struct{}
func NewClassHandlerV1 ¶
func NewClassHandlerV1() ClassHandlerV1
func (ClassHandlerV1) CreateHandler ¶
func (c ClassHandlerV1) CreateHandler(ctx *gin.Context)
CreateHandler is function to handler creating class.
func (ClassHandlerV1) Detail ¶
func (c ClassHandlerV1) Detail(ctx *gin.Context)
Detail is handler to get detail of class.
func (ClassHandlerV1) Get ¶
func (c ClassHandlerV1) Get(ctx *gin.Context)
Get is handler with request GET.
type UserHandlerV1 ¶
type UserHandlerV1 struct{}
func NewUserHandlerV1 ¶
func NewUserHandlerV1() UserHandlerV1
func (*UserHandlerV1) ActivationHandler ¶
func (u *UserHandlerV1) ActivationHandler(ctx *gin.Context)
ActivationHandler is handler for activation account/user
func (*UserHandlerV1) ChangePasswordHandler ¶
func (u *UserHandlerV1) ChangePasswordHandler(ctx *gin.Context)
ChangePasswordHandler handler to change password user account.
func (*UserHandlerV1) CheckAuthHandler ¶
func (u *UserHandlerV1) CheckAuthHandler(ctx *gin.Context)
CheckAuthHandler is handler to check authentication user.
func (*UserHandlerV1) GetTokenHandler ¶
func (u *UserHandlerV1) GetTokenHandler(ctx *gin.Context)
GetTokenHandler is handler to generate new token.
func (*UserHandlerV1) RegisterHandler ¶
func (u *UserHandlerV1) RegisterHandler(ctx *gin.Context)
RegisterHandler is handler to regitration user.
func (*UserHandlerV1) UpdateInfoUserHandler ¶
func (u *UserHandlerV1) UpdateInfoUserHandler(ctx *gin.Context)
UpdateInfoUserHandler handler to update infor user.
Click to show internal directories.
Click to hide internal directories.