memory

package
v1.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInMemory

func NewInMemory() profile.Store

Types

type Memory

type Memory struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func (*Memory) GetProfile

func (m *Memory) GetProfile(_ context.Context, id *commonpb.UserId) (*profilepb.UserProfile, error)

func (*Memory) GetUserLinkedToXAccount

func (m *Memory) GetUserLinkedToXAccount(ctx context.Context, xUserID string) (*commonpb.UserId, error)

func (*Memory) GetXProfile

func (m *Memory) GetXProfile(ctx context.Context, userID *commonpb.UserId) (*profilepb.XProfile, error)

func (*Memory) LinkXAccount

func (m *Memory) LinkXAccount(ctx context.Context, userID *commonpb.UserId, xProfile *profilepb.XProfile, accessToken string) error

func (*Memory) SetDisplayName

func (m *Memory) SetDisplayName(_ context.Context, id *commonpb.UserId, displayName string) error

func (*Memory) UnlinkXAccount added in v1.3.0

func (m *Memory) UnlinkXAccount(ctx context.Context, userID *commonpb.UserId, xUserID string) error

Jump to

Keyboard shortcuts

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