user

package
v1.21.4 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserRepo

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

func NewUserRepo

func NewUserRepo() *UserRepo

func (*UserRepo) Create

func (repo *UserRepo) Create(githubId int64, username string, role int) (*types.User, error)

func (*UserRepo) GetAll

func (repo *UserRepo) GetAll() (types.Users, error)

func (*UserRepo) GetByGithubId

func (repo *UserRepo) GetByGithubId(id int64) (*types.User, error)

func (*UserRepo) GetById

func (repo *UserRepo) GetById(id int) (*types.User, error)

func (*UserRepo) GetByUsername

func (repo *UserRepo) GetByUsername(username string) (*types.User, error)

func (*UserRepo) LoginAt

func (repo *UserRepo) LoginAt(id int) error

func (*UserRepo) Upsert

func (repo *UserRepo) Upsert(githubId int64, username string, role int) (*types.User, error)

Jump to

Keyboard shortcuts

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