Documentation ¶
Index ¶
- type IdentityRepository
- func (r *IdentityRepository) Close() error
- func (r *IdentityRepository) DeleteProfile(ctx context.Context, address common.Address) error
- func (r *IdentityRepository) DeleteUserRole(ctx context.Context, address string, roleId int32) error
- func (r *IdentityRepository) FindOneProfile(ctx context.Context, address string) (entities.Profile, error)
- func (r *IdentityRepository) FindOneUser(ctx context.Context, address string) (*entities.User, error)
- func (r *IdentityRepository) FindRoles(ctx context.Context) ([]*entities.Role, error)
- func (r *IdentityRepository) FindUser(ctx context.Context, isBlock *bool, role string, offset int32, limit int32) ([]*entities.User, error)
- func (r *IdentityRepository) InsertUser(ctx context.Context, user *entities.User) (*entities.User, error)
- func (r *IdentityRepository) InsertUserRole(ctx context.Context, address string, roleId int32) (*entities.Role, error)
- func (r *IdentityRepository) TransferAdminRole(ctx context.Context, maker string, taker string) (*entities.Role, error)
- func (r *IdentityRepository) UpdateUserBlockState(ctx context.Context, address string, isBlock bool) error
- func (r *IdentityRepository) UpdateUserNonce(ctx context.Context, address string, nonce string) (*entities.User, error)
- func (r *IdentityRepository) UpsertProfile(ctx context.Context, profile entities.Profile) (entities.Profile, error)
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 (*IdentityRepository) DeleteUserRole ¶
func (*IdentityRepository) FindOneProfile ¶
func (*IdentityRepository) FindOneUser ¶
func (*IdentityRepository) InsertUser ¶
func (*IdentityRepository) InsertUserRole ¶
func (*IdentityRepository) TransferAdminRole ¶
func (*IdentityRepository) UpdateUserBlockState ¶
func (*IdentityRepository) UpdateUserNonce ¶
func (*IdentityRepository) UpsertProfile ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.