handler

package
v0.0.0-...-99abfb9 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoginHandler

type LoginHandler struct {
	UserRepository UserRepository
}

func NewLoginHandler

func NewLoginHandler(userRepository UserRepository) *LoginHandler

func (*LoginHandler) ServeHTTP

func (h *LoginHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type SignupHandler

type SignupHandler struct {
	// contains filtered or unexported fields
}

func NewSignupHandler

func NewSignupHandler(userRepository UserRepository) *SignupHandler

func (*SignupHandler) ServeHTTP

func (h *SignupHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type UserRepository

type UserRepository interface {
	FindByEmail(ctx context.Context, email string) (*model.User, error)
	Save(ctx context.Context, user *model.User) error
}

Jump to

Keyboard shortcuts

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