Documentation ¶
Index ¶
- type Manager
- func (m *Manager) DeleteProfile(c context.Context, aid id.AccountID) error
- func (m *Manager) GetPendingProfiles(c context.Context) ([]*ProfileRecord, error)
- func (m *Manager) GetProfile(c context.Context, aid id.AccountID) (*ProfileRecord, error)
- func (m *Manager) GetProfiles(c context.Context, limit int64) ([]*ProfileRecord, error)
- func (m *Manager) UpdateProfile(c context.Context, aid id.AccountID, prevState base.IdentityStatus, ...) error
- func (m *Manager) UpdateProfilePhoto(c context.Context, aid id.AccountID, bid id.BlobID) error
- func (m *Manager) UpdateProfileStatus(c context.Context, aid id.AccountID, status base.IdentityStatus) error
- type ProfileRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
func (*Manager) DeleteProfile ¶
DeleteProfile delete profile
func (*Manager) GetPendingProfiles ¶
func (m *Manager) GetPendingProfiles(c context.Context) ([]*ProfileRecord, error)
GetPendingProfiles gets peding profiles.
func (*Manager) GetProfile ¶
GetProfile gets profile for an account.
func (*Manager) GetProfiles ¶
GetProfiles gets profiles.
func (*Manager) UpdateProfile ¶
func (m *Manager) UpdateProfile(c context.Context, aid id.AccountID, prevState base.IdentityStatus, p *base.Profile) error
UpdateProfile updates profile for an account.
func (*Manager) UpdateProfilePhoto ¶
UpdateProfilePhoto updates profile photo blob id.
func (*Manager) UpdateProfileStatus ¶ added in v0.2.1
func (m *Manager) UpdateProfileStatus(c context.Context, aid id.AccountID, status base.IdentityStatus) error
UpdateProfileStatus updates profile status.
Click to show internal directories.
Click to hide internal directories.