Documentation ¶
Index ¶
- type DB
- func (db *DB) GetUserAttributeByID(ctx context.Context, userAttributeID entry.UserAttributeID) (*entry.UserAttribute, error)
- func (db *DB) GetUserAttributeByWallet(ctx context.Context, wallet string) (*entry.UserAttribute, error)
- func (db *DB) GetUserAttributeOptionsByID(ctx context.Context, userAttributeID entry.UserAttributeID) (*entry.AttributeOptions, error)
- func (db *DB) GetUserAttributePayloadByID(ctx context.Context, userAttributeID entry.UserAttributeID) (*entry.AttributePayload, error)
- func (db *DB) GetUserAttributeValueByID(ctx context.Context, userAttributeID entry.UserAttributeID) (*entry.AttributeValue, error)
- func (db *DB) GetUserAttributes(ctx context.Context) ([]*entry.UserAttribute, error)
- func (db *DB) GetUserAttributesByUserID(ctx context.Context, userID umid.UMID) ([]*entry.UserAttribute, error)
- func (db *DB) GetUserAttributesCount(ctx context.Context) (int64, error)
- func (db *DB) RemoveUserAttributeByID(ctx context.Context, userAttributeID entry.UserAttributeID) error
- func (db *DB) RemoveUserAttributesByAttributeID(ctx context.Context, attributeID entry.AttributeID) error
- func (db *DB) RemoveUserAttributesByName(ctx context.Context, name string) error
- func (db *DB) RemoveUserAttributesByNameAndUserID(ctx context.Context, name string, userID umid.UMID) error
- func (db *DB) RemoveUserAttributesByNames(ctx context.Context, names []string) error
- func (db *DB) RemoveUserAttributesByNamesAndUserID(ctx context.Context, names []string, userID umid.UMID) error
- func (db *DB) RemoveUserAttributesByPluginID(ctx context.Context, pluginID umid.UMID) error
- func (db *DB) RemoveUserAttributesByPluginIDAndUserID(ctx context.Context, pluginID umid.UMID, userID umid.UMID) error
- func (db *DB) RemoveUserAttributesByUserID(ctx context.Context, userID umid.UMID) error
- func (db *DB) UpdateUserAttributeOptions(ctx context.Context, userAttributeID entry.UserAttributeID, ...) (*entry.AttributeOptions, error)
- func (db *DB) UpdateUserAttributeValue(ctx context.Context, userAttributeID entry.UserAttributeID, ...) (*entry.AttributeValue, error)
- func (db *DB) UpsertUserAttribute(ctx context.Context, userAttributeID entry.UserAttributeID, ...) (*entry.AttributePayload, 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) GetUserAttributeByID ¶ added in v0.2.0
func (db *DB) GetUserAttributeByID( ctx context.Context, userAttributeID entry.UserAttributeID, ) (*entry.UserAttribute, error)
func (*DB) GetUserAttributeByWallet ¶ added in v0.4.0
func (*DB) GetUserAttributeOptionsByID ¶ added in v0.2.0
func (db *DB) GetUserAttributeOptionsByID( ctx context.Context, userAttributeID entry.UserAttributeID, ) (*entry.AttributeOptions, error)
func (*DB) GetUserAttributePayloadByID ¶ added in v0.2.0
func (db *DB) GetUserAttributePayloadByID( ctx context.Context, userAttributeID entry.UserAttributeID, ) (*entry.AttributePayload, error)
func (*DB) GetUserAttributeValueByID ¶ added in v0.2.0
func (db *DB) GetUserAttributeValueByID( ctx context.Context, userAttributeID entry.UserAttributeID, ) (*entry.AttributeValue, error)
func (*DB) GetUserAttributes ¶ added in v0.2.0
func (*DB) GetUserAttributesByUserID ¶ added in v0.2.0
func (*DB) GetUserAttributesCount ¶ added in v0.2.0
func (*DB) RemoveUserAttributeByID ¶ added in v0.2.0
func (*DB) RemoveUserAttributesByAttributeID ¶ added in v0.4.0
func (*DB) RemoveUserAttributesByName ¶ added in v0.4.0
func (*DB) RemoveUserAttributesByNameAndUserID ¶ added in v0.4.0
func (*DB) RemoveUserAttributesByNames ¶ added in v0.2.0
func (*DB) RemoveUserAttributesByNamesAndUserID ¶ added in v0.4.0
func (*DB) RemoveUserAttributesByPluginID ¶ added in v0.2.0
func (*DB) RemoveUserAttributesByPluginIDAndUserID ¶ added in v0.4.0
func (*DB) RemoveUserAttributesByUserID ¶ added in v0.4.0
func (*DB) UpdateUserAttributeOptions ¶ added in v0.2.0
func (db *DB) UpdateUserAttributeOptions( ctx context.Context, userAttributeID entry.UserAttributeID, modifyFn modify.Fn[entry.AttributeOptions], ) (*entry.AttributeOptions, error)
func (*DB) UpdateUserAttributeValue ¶ added in v0.2.0
func (db *DB) UpdateUserAttributeValue( ctx context.Context, userAttributeID entry.UserAttributeID, modifyFn modify.Fn[entry.AttributeValue], ) (*entry.AttributeValue, error)
func (*DB) UpsertUserAttribute ¶ added in v0.2.0
func (db *DB) UpsertUserAttribute( ctx context.Context, userAttributeID entry.UserAttributeID, modifyFn modify.Fn[entry.AttributePayload], ) (*entry.AttributePayload, error)
Click to show internal directories.
Click to hide internal directories.