Documentation ¶
Index ¶
- Constants
- type Handler
- func (h *Handler) CreateProfile(ctx context.Context, req *pb.CreateProfileRequest) (*pb.CreateProfileResponse, error)
- func (h *Handler) DeleteProfile(ctx context.Context, req *pb.DeleteProfileRequest) (*emptypb.Empty, error)
- func (h *Handler) GetProfile(ctx context.Context, req *pb.GetProfileRequest) (*pb.GetProfileResponse, error)
- func (h *Handler) GetPublicProfile(ctx context.Context, req *pb.GetProfileRequest) (*pb.GetPublicProfileResponse, error)
- func (h *Handler) ListAllProfiles(ctx context.Context, req *pb.ListAllProfilesRequest) (*pb.ListAllProfilesResponse, error)
- func (h *Handler) UpdateProfile(ctx context.Context, req *pb.UpdateProfileRequest) (*pb.UpdateProfileResponse, error)
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 (*Handler) CreateProfile ¶
func (h *Handler) CreateProfile(ctx context.Context, req *pb.CreateProfileRequest) (*pb.CreateProfileResponse, error)
func (*Handler) DeleteProfile ¶
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)
Click to show internal directories.
Click to hide internal directories.