auth

package
v0.0.0-...-81dbdb3 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthHandler

type AuthHandler struct {
	UsersService users.UserServiceInterface
}

func (*AuthHandler) GetToken

func (ah *AuthHandler) GetToken(w http.ResponseWriter, r *http.Request)

func (*AuthHandler) SignUp

func (ah *AuthHandler) SignUp(w http.ResponseWriter, r *http.Request)

type ResponseToken

type ResponseToken struct {
	Token string `json:"token"`
}

type SignupData

type SignupData struct {
	Email    string `json:"email" validate:"required,email"`
	Password string `json:"password" validate:"required"`
}

Jump to

Keyboard shortcuts

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