profile

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AlreadyExists        string = "User profile already exists"
	DoesNotExist         string = "User profile does not exist"
	GamerTagAlreadyInUse string = "Gamer tag already in use"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	pb.UnimplementedProfilesServer
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(config util.Config, cache cache.Cache, store db.Store, taskDistributor worker.TaskDistributor, authService services.AuthGrpcService) Handler

func (*Handler) CreateProfile

func (h *Handler) CreateProfile(ctx context.Context, req *pb.CreateProfileRequest) (*pb.CreateProfileResponse, error)

func (*Handler) DeleteProfile

func (h *Handler) DeleteProfile(ctx context.Context, req *pb.DeleteProfileRequest) (*emptypb.Empty, error)

func (*Handler) GetProfile

func (h *Handler) GetProfile(ctx context.Context, req *pb.GetProfileRequest) (*pb.GetProfileResponse, error)

func (*Handler) GetPublicProfile

func (h *Handler) GetPublicProfile(ctx context.Context, req *pb.GetProfileRequest) (*pb.GetPublicProfileResponse, error)

func (*Handler) ListAllProfiles

func (h *Handler) ListAllProfiles(ctx context.Context, req *pb.ListAllProfilesRequest) (*pb.ListAllProfilesResponse, error)

func (*Handler) UpdateProfile

func (h *Handler) UpdateProfile(ctx context.Context, req *pb.UpdateProfileRequest) (*pb.UpdateProfileResponse, error)

Jump to

Keyboard shortcuts

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