handler

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: May 26, 2024 License: MIT Imports: 18 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 interface {
	RouteRegisterer

	SignUpUser() http.HandlerFunc
	SignInUser() http.HandlerFunc

	Verify() http.HandlerFunc
	GetVerificationCode() http.HandlerFunc
}

func NewAuthHandler

func NewAuthHandler(application *cqrs.Application, l *logger.Logger) AuthHandler

type CryptonHandler

type CryptonHandler interface {
	RouteRegisterer

	Encrypt() http.HandlerFunc
	Decrypt() http.HandlerFunc
}

func NewCryptonHandler

func NewCryptonHandler(l *logger.Logger) CryptonHandler

type DocsHandler

type DocsHandler interface {
	RouteRegisterer
	Documentation() HandlerFunc
}

func NewDocsHandler

func NewDocsHandler(l *logger.Logger) DocsHandler

type HandlerFunc

type HandlerFunc func(http.ResponseWriter, *http.Request)

type RouteRegisterer

type RouteRegisterer interface {
	RegisterRoutes(r *mux.Router, cfg interface{})
}

type UserHandler

type UserHandler interface {
	RouteRegisterer
	GetUserByID() HandlerFunc
	PasswordChange() HandlerFunc
}

func NewUserHandler

func NewUserHandler(application *cqrs.Application, l *logger.Logger) UserHandler

Jump to

Keyboard shortcuts

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