Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( SignUp = types.NewRESTEndpoint("/sign-up") Profile = types.NewRESTEndpoint("/profile") FullProfile = types.NewRESTEndpoint("/full-profile") IdByUsername = types.NewRESTEndpoint( "/id-by-username", types.Username, ) Password = types.NewRESTEndpoint("/password") Username = types.NewRESTEndpoint("/username") UsernameById = types.NewRESTEndpoint( "/username-by-id", types.Id, ) UsernameExistsByUsername = types.NewRESTEndpoint( "/username-exists", types.Username, ) Email = types.NewRESTEndpoint("/email") EmailByEmail = types.NewRESTEndpoint("/email", types.Email) Emails = types.NewRESTEndpoint("/emails") SendVerificationEmail = types.NewRESTEndpoint("/send-verification-email") VerifyEmailByToken = types.NewRESTEndpoint( "/verify-email", types.Token, ) PhoneNumber = types.NewRESTEndpoint("/phone-number") SendVerificationSMS = types.NewRESTEndpoint("/send-verification-sms") VerifyPhoneNumberByToken = types.NewRESTEndpoint( "/verify-phone-number", types.Token, ) ForgotPassword = types.NewRESTEndpoint("/forgot-password") ResetPasswordByToken = types.NewRESTEndpoint( "/reset-password", types.Token, ) DeleteAccount = types.NewRESTEndpoint("/delete-account") )
User service REST endpoints
View Source
var RESTMap = map[string]map[types.RESTMethod]types.GRPCMethod{ SignUp.String(): { types.POST: detailsuser.SignUp, }, Profile.String(): { types.GET: detailsuser.GetProfile, types.PATCH: detailsuser.UpdateProfile, }, FullProfile.String(): { types.GET: detailsuser.GetFullProfile, }, IdByUsername.String(): { types.GET: detailsuser.GetUserIdByUsername, }, Password.String(): { types.PUT: detailsuser.ChangePassword, }, Username.String(): { types.PUT: detailsuser.ChangeUsername, }, UsernameExistsByUsername.String(): { types.GET: detailsuser.UsernameExists, }, UsernameById.String(): { types.GET: detailsuser.GetUsernameByUserId, }, Email.String(): { types.GET: detailsuser.GetPrimaryEmail, types.PUT: detailsuser.ChangePrimaryEmail, types.POST: detailsuser.AddEmail, }, EmailByEmail.String(): { types.DELETE: detailsuser.DeleteEmail, }, Emails.String(): { types.GET: detailsuser.GetActiveEmails, }, SendVerificationEmail.String(): { types.POST: detailsuser.SendVerificationEmail, }, VerifyEmailByToken.String(): { types.POST: detailsuser.VerifyEmail, }, PhoneNumber.String(): { types.PUT: detailsuser.ChangePhoneNumber, types.GET: detailsuser.GetPhoneNumber, }, SendVerificationSMS.String(): { types.POST: detailsuser.SendVerificationSMS, }, VerifyPhoneNumberByToken.String(): { types.POST: detailsuser.VerifyPhoneNumber, }, ForgotPassword.String(): { types.POST: detailsuser.ForgotPassword, }, ResetPasswordByToken.String(): { types.POST: detailsuser.ResetPassword, }, DeleteAccount.String(): { types.DELETE: detailsuser.DeleteUser, }, }
RESTMap is the map of the Rest API endpoints to the user service gRPC methods
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.