Documentation
¶
Index ¶
- type DB
- func (db *DB) GetUserAttributeByID(ctx context.Context, userAttributeID entry.UserAttributeID) (*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 uuid.UUID) ([]*entry.UserAttribute, error)
- func (db *DB) GetUserAttributesCount(ctx context.Context) (int64, error)
- func (db *DB) RemoveUserAttributeByAttributeID(ctx context.Context, attributeID entry.AttributeID) error
- func (db *DB) RemoveUserAttributeByID(ctx context.Context, userAttributeID entry.UserAttributeID) error
- func (db *DB) RemoveUserAttributeByName(ctx context.Context, name string) error
- func (db *DB) RemoveUserAttributeByNameAndUserID(ctx context.Context, name string, userID uuid.UUID) error
- func (db *DB) RemoveUserAttributeByNamesAndUserID(ctx context.Context, names []string, userID uuid.UUID) error
- func (db *DB) RemoveUserAttributeByPluginIDAndUserID(ctx context.Context, pluginID uuid.UUID, userID uuid.UUID) error
- func (db *DB) RemoveUserAttributeByUserID(ctx context.Context, userID uuid.UUID) error
- func (db *DB) RemoveUserAttributesByNames(ctx context.Context, names []string) error
- func (db *DB) RemoveUserAttributesByPluginID(ctx context.Context, pluginID uuid.UUID) 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) 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) RemoveUserAttributeByAttributeID ¶ added in v0.2.0
func (*DB) RemoveUserAttributeByID ¶ added in v0.2.0
func (*DB) RemoveUserAttributeByName ¶ added in v0.2.0
func (*DB) RemoveUserAttributeByNameAndUserID ¶ added in v0.2.0
func (*DB) RemoveUserAttributeByNamesAndUserID ¶ added in v0.2.0
func (*DB) RemoveUserAttributeByPluginIDAndUserID ¶ added in v0.2.0
func (*DB) RemoveUserAttributeByUserID ¶ added in v0.2.0
func (*DB) RemoveUserAttributesByNames ¶ added in v0.2.0
func (*DB) RemoveUserAttributesByPluginID ¶ added in v0.2.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.