Documentation
¶
Index ¶
- type DB
- func (db *DB) CheckIsUserExistsByName(ctx context.Context, name string) (bool, error)
- func (db *DB) CheckIsUserExistsByWallet(ctx context.Context, wallet string) (bool, error)
- func (db *DB) GetAllUsers(ctx context.Context, userTypeID umid.UMID) ([]*entry.User, error)
- func (db *DB) GetUserByID(ctx context.Context, userID umid.UMID) (*entry.User, error)
- func (db *DB) GetUserByWallet(ctx context.Context, wallet string) (*entry.User, error)
- func (db *DB) GetUserIDs(ctx context.Context, sortType universe.SortType, limit string, ...) ([]umid.UMID, error)
- func (db *DB) GetUserProfileByUserID(ctx context.Context, userID umid.UMID) (*entry.UserProfile, error)
- func (db *DB) GetUserWalletByUserID(ctx context.Context, userID umid.UMID) (*string, error)
- func (db *DB) GetUserWalletsByUserID(ctx context.Context, userID umid.UMID) ([]*string, error)
- func (db *DB) GetUsersByIDs(ctx context.Context, userIDs []umid.UMID) ([]*entry.User, error)
- func (db *DB) GetUsersByUserType(ctx context.Context, userTypeID umid.UMID) ([]*entry.User, error)
- func (db *DB) RemoveUserByID(ctx context.Context, userID umid.UMID) error
- func (db *DB) RemoveUsersByIDs(ctx context.Context, userIDs []umid.UMID) error
- func (db *DB) UpdateUserOptions(ctx context.Context, userID umid.UMID, options *entry.UserOptions) error
- func (db *DB) UpdateUserProfile(ctx context.Context, userID umid.UMID, profile *entry.UserProfile) error
- func (db *DB) UpdateUserUserTypeID(ctx context.Context, userID umid.UMID, userTypeID umid.UMID) error
- func (db *DB) UpsertUser(ctx context.Context, user *entry.User) error
- func (db *DB) UpsertUsers(ctx context.Context, users []*entry.User) error
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 (*DB) CheckIsUserExistsByName ¶ added in v0.2.0
func (*DB) CheckIsUserExistsByWallet ¶ added in v0.4.0
func (*DB) GetAllUsers ¶ added in v0.4.0
func (*DB) GetUserByID ¶ added in v0.2.0
func (*DB) GetUserByWallet ¶ added in v0.2.0
func (*DB) GetUserIDs ¶ added in v0.4.0
func (*DB) GetUserProfileByUserID ¶ added in v0.2.0
func (*DB) GetUserWalletByUserID ¶ added in v0.2.0
func (*DB) GetUserWalletsByUserID ¶ added in v0.4.0
func (*DB) GetUsersByIDs ¶ added in v0.2.0
func (*DB) GetUsersByUserType ¶ added in v0.4.0
func (*DB) RemoveUserByID ¶ added in v0.2.0
func (*DB) RemoveUsersByIDs ¶ added in v0.2.0
func (*DB) UpdateUserOptions ¶ added in v0.2.0
func (*DB) UpdateUserProfile ¶ added in v0.2.0
func (*DB) UpdateUserUserTypeID ¶ added in v0.2.0
func (*DB) UpsertUser ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.