identity

package
v0.0.0-...-76fd6e2 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IdentityRepository

type IdentityRepository struct {
	// contains filtered or unexported fields
}

func NewIdentityRepository

func NewIdentityRepository(
	ctx context.Context,
	dataSourceName string,
) (*IdentityRepository, error)

func (*IdentityRepository) Close

func (r *IdentityRepository) Close() error

func (*IdentityRepository) DeleteProfile

func (r *IdentityRepository) DeleteProfile(
	ctx context.Context,
	address common.Address,
) error

func (*IdentityRepository) DeleteUserRole

func (r *IdentityRepository) DeleteUserRole(
	ctx context.Context,
	address string,
	roleId int32,
) error

func (*IdentityRepository) FindOneProfile

func (r *IdentityRepository) FindOneProfile(
	ctx context.Context,
	address string,
) (entities.Profile, error)

func (*IdentityRepository) FindOneUser

func (r *IdentityRepository) FindOneUser(
	ctx context.Context,
	address string,
) (*entities.User, error)

func (*IdentityRepository) FindRoles

func (r *IdentityRepository) FindRoles(
	ctx context.Context,
) ([]*entities.Role, error)

func (*IdentityRepository) FindUser

func (r *IdentityRepository) FindUser(
	ctx context.Context,
	isBlock *bool,
	role string,
	offset int32,
	limit int32,
) ([]*entities.User, error)

func (*IdentityRepository) InsertUser

func (r *IdentityRepository) InsertUser(
	ctx context.Context,
	user *entities.User,
) (*entities.User, error)

func (*IdentityRepository) InsertUserRole

func (r *IdentityRepository) InsertUserRole(
	ctx context.Context,
	address string,
	roleId int32,
) (*entities.Role, error)

func (*IdentityRepository) TransferAdminRole

func (r *IdentityRepository) TransferAdminRole(
	ctx context.Context,
	maker string, taker string) (*entities.Role, error)

func (*IdentityRepository) UpdateUserBlockState

func (r *IdentityRepository) UpdateUserBlockState(
	ctx context.Context,
	address string,
	isBlock bool,
) error

func (*IdentityRepository) UpdateUserNonce

func (r *IdentityRepository) UpdateUserNonce(
	ctx context.Context,
	address string,
	nonce string,
) (*entities.User, error)

func (*IdentityRepository) UpsertProfile

func (r *IdentityRepository) UpsertProfile(
	ctx context.Context,
	profile entities.Profile,
) (entities.Profile, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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