models

package
v0.0.0-...-0dbe543 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	UserName string `json:"username"`
	Email    string `json:"email"`
	Password string `json:"password"`
}

User struct to represent a user

func GetByUsername

func GetByUsername(ctx context.Context, username string) (*User, error)

func (User) Create

func (newUser User) Create(ctx context.Context) (User, error)

func (User) List

func (u User) List(ctx context.Context) ([]User, error)

Jump to

Keyboard shortcuts

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