Documentation ¶
Index ¶
Constants ¶
View Source
const ( AlreadyReferred string = "User already referred" ReferrerDoesNotExist string = "Referrer does not exist" SelfReferralError string = "A user cannot refer themselves" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { pb.UnimplementedReferralsServer // contains filtered or unexported fields }
func (*Handler) GetReferrer ¶
func (h *Handler) GetReferrer(ctx context.Context, req *pb.GetReferrerRequest) (*pb.GetReferrerResponse, error)
func (*Handler) ListReferrals ¶
func (h *Handler) ListReferrals(ctx context.Context, req *pb.ListReferralsRequest) (*pb.ListReferralsResponse, error)
Click to show internal directories.
Click to hide internal directories.