Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Relative = typesrest.NewRelativeEndpoint() SignUp = typesrest.NewEndpoint("sign-up") Password = typesrest.NewEndpoint("password") Username = typesrest.NewEndpoint("username") ProfilePicture = typesrest.NewEndpoint("profile-picture") UserIdByUsername = typesrest.NewEndpoint( "user-id", typesrest.Username, ) ForgotPassword = typesrest.NewEndpoint("forgot-password") ResetPasswordByToken = typesrest.NewEndpoint( "reset-password", typesrest.Token, ) DeleteAccount = typesrest.NewEndpoint("delete-account") )
Users service REST endpoints
View Source
var ( UpdateUserMapper = rest.NewMapper(Relative, configusers.UpdateUser) SignUpMapper = rest.NewMapper(SignUp, configusers.SignUp) GetUserIdByUsernameMapper = rest.NewMapper(UserIdByUsername, configusers.GetUserIdByUsername) ChangePasswordMapper = rest.NewMapper(Password, configusers.ChangePassword) ChangeUsernameMapper = rest.NewMapper(Username, configusers.ChangeUsername) SetProfilePictureMapper = rest.NewMapper(ProfilePicture, configusers.SetProfilePicture) ForgotPasswordMapper = rest.NewMapper(ForgotPassword, configusers.ForgotPassword) ResetPasswordMapper = rest.NewMapper(ResetPasswordByToken, configusers.ResetPassword) DeleteAccountMapper = rest.NewMapper(DeleteAccount, configusers.DeleteUser) )
Users service endpoints mapping
View Source
var Base = typesrest.NewBaseEndpoint("users")
Base is the base endpoint for the user service REST endpoints
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.