models

package
v0.0.0-...-2fdef8e Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Storage = map[string]User{} // dummy storage

Functions

This section is empty.

Types

type ResponseUser

type ResponseUser struct {
	Email string `json:"email"`
}

type User

type User struct {
	Email        string `json:"email" validate:"required,email"`
	Password     string `json:"password" validate:"required,min=8"`
	SessionToken string `json:"sessionToken"`
	CSRFToken    string `json:"csrfToken"`
}

func (*User) Show

func (u *User) Show() ResponseUser

func (*User) Store

func (u *User) Store() error

Jump to

Keyboard shortcuts

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