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