handlers

package
v0.0.0-...-39ee276 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

This package is a package that functions to create an http handler.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActivationData

type ActivationData struct {
	Email          string
	ExpirationTime time.Time
}

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) Delete

func (c ClassHandlerV1) Delete(ctx *gin.Context)

Delete handler

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.

func (ClassHandlerV1) Update

func (c ClassHandlerV1) Update(ctx *gin.Context)

Update handler

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.

Jump to

Keyboard shortcuts

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