model

package
v0.1.22 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NewSession

type NewSession struct {
	Email    string `json:"email"`
	Password string `json:"password"`
}

NewSession struct for NewSession

func CreateNewSession

func CreateNewSession(email string, password string) *NewSession

func DecodeRequestToNewSession

func DecodeRequestToNewSession(r *http.Request) (*NewSession, error)

type Session

type Session struct {
	User  User   `json:"user"`
	Token string `json:"token,omitempty"`
}

Session struct for Session

type SessionRefresh

type SessionRefresh struct {
	Token string `json:"token"`
}

SessionRefresh struct for SessionRefresh

type User

type User struct {
	Id       int64  `json:"id"`
	Uuid     string `json:"uuid"`
	Name     string `json:"name"`
	Username string `json:"username"`
}

User struct for User

Jump to

Keyboard shortcuts

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