users

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 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(conn *pgxpool.Pool, commonDB database.CommonDB) *DB

func (*DB) CheckIsUserExistsByName added in v0.2.0

func (db *DB) CheckIsUserExistsByName(ctx context.Context, name string) (bool, error)

func (*DB) CheckIsUserExistsByWallet added in v0.4.0

func (db *DB) CheckIsUserExistsByWallet(ctx context.Context, wallet string) (bool, error)

func (*DB) GetAllUsers added in v0.4.0

func (db *DB) GetAllUsers(ctx context.Context, userTypeID umid.UMID) ([]*entry.User, error)

func (*DB) GetUserByID added in v0.2.0

func (db *DB) GetUserByID(ctx context.Context, userID umid.UMID) (*entry.User, error)

func (*DB) GetUserByWallet added in v0.2.0

func (db *DB) GetUserByWallet(ctx context.Context, wallet string) (*entry.User, error)

func (*DB) GetUserIDs added in v0.4.0

func (db *DB) GetUserIDs(ctx context.Context, sortType universe.SortType, limit string, userTypeID umid.UMID) ([]umid.UMID, error)

func (*DB) GetUserProfileByUserID added in v0.2.0

func (db *DB) GetUserProfileByUserID(ctx context.Context, userID umid.UMID) (*entry.UserProfile, error)

func (*DB) GetUserWalletByUserID added in v0.2.0

func (db *DB) GetUserWalletByUserID(ctx context.Context, userID umid.UMID) (*string, error)

func (*DB) GetUserWalletsByUserID added in v0.4.0

func (db *DB) GetUserWalletsByUserID(ctx context.Context, userID umid.UMID) ([]*string, error)

func (*DB) GetUsersByIDs added in v0.2.0

func (db *DB) GetUsersByIDs(ctx context.Context, userIDs []umid.UMID) ([]*entry.User, error)

func (*DB) GetUsersByUserType added in v0.4.0

func (db *DB) GetUsersByUserType(ctx context.Context, userTypeID umid.UMID) ([]*entry.User, error)

func (*DB) RemoveUserByID added in v0.2.0

func (db *DB) RemoveUserByID(ctx context.Context, userID umid.UMID) error

func (*DB) RemoveUsersByIDs added in v0.2.0

func (db *DB) RemoveUsersByIDs(ctx context.Context, userIDs []umid.UMID) error

func (*DB) UpdateUserOptions added in v0.2.0

func (db *DB) UpdateUserOptions(ctx context.Context, userID umid.UMID, options *entry.UserOptions) error

func (*DB) UpdateUserProfile added in v0.2.0

func (db *DB) UpdateUserProfile(ctx context.Context, userID umid.UMID, profile *entry.UserProfile) error

func (*DB) UpdateUserUserTypeID added in v0.2.0

func (db *DB) UpdateUserUserTypeID(ctx context.Context, userID umid.UMID, userTypeID umid.UMID) error

func (*DB) UpsertUser added in v0.2.0

func (db *DB) UpsertUser(ctx context.Context, user *entry.User) error

func (*DB) UpsertUsers added in v0.2.0

func (db *DB) UpsertUsers(ctx context.Context, users []*entry.User) error

Jump to

Keyboard shortcuts

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