handler

package
v0.0.0-...-ec15c9c Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleStatic

func HandleStatic(
	r router.Router,
	store sessions.Store,
	t templates.Templates,
)

func HandleUsers

func HandleUsers(
	r router.Router,
	s storage.UserStorage,
	store sessions.Store,
	v *validator.Validate,
)

Types

type User

type User struct {
	ID       int32  `json:"id,omitempty" validate:"isdefault"`
	Email    string `json:"email" validate:"required,email,max=255"`
	Password string `json:"password,omitempty" validate:"required,min=8,max=1024"`
}

Jump to

Keyboard shortcuts

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