Documentation
¶
Index ¶
- func NewInMemory() profile.Store
- type InMemoryStore
- func (m *InMemoryStore) GetProfile(_ context.Context, id *commonpb.UserId, includePrivateProfile bool) (*profilepb.UserProfile, error)
- func (m *InMemoryStore) GetXProfile(ctx context.Context, userID *commonpb.UserId) (*profilepb.XProfile, error)
- func (m *InMemoryStore) LinkXAccount(ctx context.Context, userID *commonpb.UserId, xProfile *profilepb.XProfile, ...) error
- func (m *InMemoryStore) SetDisplayName(_ context.Context, id *commonpb.UserId, displayName string) error
- func (m *InMemoryStore) SetEmailAddress(_ context.Context, id *commonpb.UserId, emailAddress string) error
- func (m *InMemoryStore) SetPhoneNumber(_ context.Context, id *commonpb.UserId, phoneNumber string) error
- func (m *InMemoryStore) UnlinkEmailAddress(ctx context.Context, userID *commonpb.UserId, emailAddress string) error
- func (m *InMemoryStore) UnlinkPhoneNumber(ctx context.Context, userID *commonpb.UserId, phoneNumber string) error
- func (m *InMemoryStore) UnlinkXAccount(ctx context.Context, userID *commonpb.UserId, xUserID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInMemory ¶
Types ¶
type InMemoryStore ¶
func (*InMemoryStore) GetProfile ¶
func (m *InMemoryStore) GetProfile(_ context.Context, id *commonpb.UserId, includePrivateProfile bool) (*profilepb.UserProfile, error)
func (*InMemoryStore) GetXProfile ¶
func (*InMemoryStore) LinkXAccount ¶
func (*InMemoryStore) SetDisplayName ¶
func (*InMemoryStore) SetEmailAddress ¶
func (*InMemoryStore) SetPhoneNumber ¶
func (*InMemoryStore) UnlinkEmailAddress ¶
func (*InMemoryStore) UnlinkPhoneNumber ¶
func (*InMemoryStore) UnlinkXAccount ¶
Click to show internal directories.
Click to hide internal directories.