user_attributes

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 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) 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 *DB) GetUserAttributes(ctx context.Context) ([]*entry.UserAttribute, error)

func (*DB) GetUserAttributesByUserID added in v0.2.0

func (db *DB) GetUserAttributesByUserID(
	ctx context.Context, userID uuid.UUID,
) ([]*entry.UserAttribute, error)

func (*DB) GetUserAttributesCount added in v0.2.0

func (db *DB) GetUserAttributesCount(ctx context.Context) (int64, error)

func (*DB) RemoveUserAttributeByAttributeID added in v0.2.0

func (db *DB) RemoveUserAttributeByAttributeID(
	ctx context.Context, attributeID entry.AttributeID,
) error

func (*DB) RemoveUserAttributeByID added in v0.2.0

func (db *DB) RemoveUserAttributeByID(
	ctx context.Context, userAttributeID entry.UserAttributeID,
) error

func (*DB) RemoveUserAttributeByName added in v0.2.0

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

func (*DB) RemoveUserAttributeByNameAndUserID added in v0.2.0

func (db *DB) RemoveUserAttributeByNameAndUserID(
	ctx context.Context, name string, userID uuid.UUID,
) error

func (*DB) RemoveUserAttributeByNamesAndUserID added in v0.2.0

func (db *DB) RemoveUserAttributeByNamesAndUserID(
	ctx context.Context, names []string, userID uuid.UUID,
) error

func (*DB) RemoveUserAttributeByPluginIDAndUserID added in v0.2.0

func (db *DB) RemoveUserAttributeByPluginIDAndUserID(
	ctx context.Context, pluginID uuid.UUID, userID uuid.UUID,
) error

func (*DB) RemoveUserAttributeByUserID added in v0.2.0

func (db *DB) RemoveUserAttributeByUserID(ctx context.Context, userID uuid.UUID) error

func (*DB) RemoveUserAttributesByNames added in v0.2.0

func (db *DB) RemoveUserAttributesByNames(ctx context.Context, names []string) error

func (*DB) RemoveUserAttributesByPluginID added in v0.2.0

func (db *DB) RemoveUserAttributesByPluginID(ctx context.Context, pluginID uuid.UUID) error

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)

Jump to

Keyboard shortcuts

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