db

package
v0.0.0-...-b986d7c Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func NewDB

func NewDB() *DB

type UserRepo

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

func NewUserRepo

func NewUserRepo(db *DB) *UserRepo

func (*UserRepo) InsertEmptyModelUser

func (u *UserRepo) InsertEmptyModelUser(ctx context.Context, user *model.User) error

func (*UserRepo) SearchByDiscordTag

func (u *UserRepo) SearchByDiscordTag(ctx context.Context, searchTerm string) (*model.User, error)

func (*UserRepo) SearchUserByDiscordId

func (u *UserRepo) SearchUserByDiscordId(ctx context.Context, searchId string) (*model.User, error)

func (*UserRepo) SearchUserByUUID

func (u *UserRepo) SearchUserByUUID(ctx context.Context, uuid string) ([]*model.User, error)

func (*UserRepo) SetDiscordIdForUser

func (u *UserRepo) SetDiscordIdForUser(ctx context.Context, userId int, discordId []string) error

func (*UserRepo) UnsetDiscordTag

func (u *UserRepo) UnsetDiscordTag(ctx context.Context, userId int) error

Jump to

Keyboard shortcuts

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