user_attributes

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) 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 *DB) GetUserAttributeByWallet(
	ctx context.Context, wallet string,
) (*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 umid.UMID,
) ([]*entry.UserAttribute, error)

func (*DB) GetUserAttributesCount added in v0.2.0

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

func (*DB) RemoveUserAttributeByID added in v0.2.0

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

func (*DB) RemoveUserAttributesByAttributeID added in v0.4.0

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

func (*DB) RemoveUserAttributesByName added in v0.4.0

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

func (*DB) RemoveUserAttributesByNameAndUserID added in v0.4.0

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

func (*DB) RemoveUserAttributesByNames added in v0.2.0

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

func (*DB) RemoveUserAttributesByNamesAndUserID added in v0.4.0

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

func (*DB) RemoveUserAttributesByPluginID added in v0.2.0

func (db *DB) RemoveUserAttributesByPluginID(ctx context.Context, pluginID umid.UMID) error

func (*DB) RemoveUserAttributesByPluginIDAndUserID added in v0.4.0

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

func (*DB) RemoveUserAttributesByUserID added in v0.4.0

func (db *DB) RemoveUserAttributesByUserID(ctx context.Context, userID umid.UMID) 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