Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeGetOauthUrlEndpoint ¶
func MakeLogoutEndpoint ¶
Types ¶
type Endpoints ¶
type Endpoints struct {
LogoutEndpoint endpoint.Endpoint
GetOauthUrlEndpoint endpoint.Endpoint
GetOauthCallbackEndpoint endpoint.Endpoint
}
func MakeEndpoints ¶
type MailxClaims ¶
type MailxClaims struct {
ID string
jwt.StandardClaims
}
type Service ¶
type Service interface {
// Creates the oath authorization URL
GetOauthUrl(context.Context) (string, error)
// Generates the token access after a successful sign in
GenerateOauthToken(context.Context, string) (*oauth2.Token, error)
// Configuration of a gmail service for a current user
ConfigGmailServiceUser(context.Context, string) (*models.User, error)
// CreateJWT generates a json web token for mailx-google-service authentication.
CreateJWT(context.Context, *models.User) (string, error)
}
Click to show internal directories.
Click to hide internal directories.