Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Emails = rest.NewEndpoint("emails") PhoneNumbers = rest.NewEndpoint("phone-numbers") Profiles = rest.NewEndpoint("profiles") Usernames = rest.NewEndpoint("usernames") )
User service children REST endpoints
View Source
var ( Relative = typesrest.NewEndpoint("") SignUp = typesrest.NewEndpoint("sign-up") Password = typesrest.NewEndpoint("password") Username = typesrest.NewEndpoint("username") IdByUsername = typesrest.NewEndpoint( "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 ChildrenMaps = map[string]*rest.Map{ Emails.String(): emails.Map, PhoneNumbers.String(): phonenumbers.Map, Profiles.String(): profiles.Map, Usernames.String(): usernames.Map, }
ChildrenMaps is the map of the REST API endpoints of the auth service
View Source
var Interceptions = map[string]map[rest.Method]grpc.Method{ Relative.String(): { rest.PATCH: configusers.UpdateUser, }, SignUp.String(): { rest.POST: configusers.SignUp, }, IdByUsername.String(): { rest.GET: configusers.GetUserIdByUsername, }, Password.String(): { rest.PUT: configusers.ChangePassword, }, Username.String(): { rest.PUT: configusers.ChangeUsername, }, ForgotPassword.String(): { rest.POST: configusers.ForgotPassword, }, ResetPasswordByToken.String(): { rest.POST: configusers.ResetPassword, }, DeleteAccount.String(): { rest.DELETE: configusers.DeleteUser, }, }
Interceptions is the map of the REST API endpoints to the user service gRPC methods
View Source
var Map = rest.NewMap( &Interceptions, &ChildrenMaps, )
Map is the map of the REST API endpoints of the auth service
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.