model

package
v2.19.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: MIT Imports: 1 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StoreUser added in v2.4.0

func StoreUser(ctx context.Context, user User) context.Context

Types

type User

type User struct {
	Login    string `json:"login"`
	Password string `json:"password,omitempty"`
	ID       uint64 `json:"id"`
}

func NewUser

func NewUser(id uint64, login string) User

func ReadUser added in v2.4.0

func ReadUser(ctx context.Context) (output User)

func (User) IsZero added in v2.11.4

func (u User) IsZero() bool

Jump to

Keyboard shortcuts

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