handlers

package
v0.0.0-...-1b7ffe2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthHandler

func NewAuthHandler(r rep.UsersRepository, jwtSecret string) *authHandler

func NewNegativationHandler

func NewNegativationHandler(r rep.NegativationRepository) *negativationHandler

func NewUsersHandler

func NewUsersHandler(r rep.UsersRepository) *usersHandler

Types

type AuthHandler

type AuthHandler interface {
	Login(c *gin.Context)
	Logout(c *gin.Context)
	Refresh(c *gin.Context)
}

type Handler

type Handler interface {
	Fetch(c *gin.Context)
	GetAll(c *gin.Context)
	Get(c *gin.Context)
	GetByID(c *gin.Context)
	Create(c *gin.Context)
	Update(c *gin.Context)
	Delete(c *gin.Context)
}

type UserHandler

type UserHandler interface {
	FindByEmail(c *gin.Context)
	Find(c *gin.Context)
}

Jump to

Keyboard shortcuts

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