Documentation ¶
Index ¶
Constants ¶
View Source
const BaseURI = "/emails"
BaseURI is the base URI for the user service emails REST endpoints
Variables ¶
View Source
var ( Relative = rest2.NewEndpoint("/") ByEmail = rest2.NewEndpoint("/", rest2.Email) Primary = rest2.NewEndpoint("/primary") SendVerification = rest2.NewEndpoint("/send-verification") VerifyByToken = rest2.NewEndpoint( "/verify", rest2.Token, ) )
User service emails REST endpoints
View Source
var Map = map[string]map[rest.Method]grpc.Method{ Relative.String(): { rest.GET: detailsuser.GetActiveEmails, rest.POST: detailsuser.AddEmail, }, Primary.String(): { rest.GET: detailsuser.GetPrimaryEmail, rest.PUT: detailsuser.ChangePrimaryEmail, }, ByEmail.String(): { rest.DELETE: detailsuser.DeleteEmail, }, SendVerification.String(): { rest.POST: detailsuser.SendVerificationEmail, }, VerifyByToken.String(): { rest.POST: detailsuser.VerifyEmail, }, }
Map is the map of the REST API endpoints to the user service emails gRPC methods
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.