login

package
v4.7.2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 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 Handler

type Handler struct {
	cases.Login
}

func (*Handler) Handle

func (handler *Handler) Handle(query *Query) (*Response, error)

type Login

type Login struct {
	repository.Repository
	hashing.Hashing
}

func (*Login) Run

func (use *Login) Run(email *user.Email, password *user.Password) (*user.User, error)

type Query

type Query struct {
	Email, Password string
}

func RandomQuery

func RandomQuery() *Query

type Response

type Response struct {
	Id, Email, Username, Password string
	Verified                      bool
}

Jump to

Keyboard shortcuts

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