user

package
v0.0.0-...-864a334 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

type Repo struct {
	// contains filtered or unexported fields
}

func New

func New(db *gorm.DB) *Repo

func (*Repo) Create

func (r *Repo) Create(ctx context.Context, usr *entity.User) (id entity.UserID, err error)

func (*Repo) Find

func (r *Repo) Find(ctx context.Context, login string) (*entity.User, error)

func (*Repo) Read

func (r *Repo) Read(ctx context.Context, id entity.UserID) (*entity.User, error)

Jump to

Keyboard shortcuts

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