Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthService ¶
type AuthService struct {
// contains filtered or unexported fields
}
func NewAuthService ¶
func NewAuthService(userSvc domain.UserService, oauthSvc domain.OAuth2Service, tokenSvc domain.TokenService) *AuthService
type GoogleOAuth2Service ¶
type GoogleOAuth2Service struct {
// contains filtered or unexported fields
}
func NewGoogleOAuth2Service ¶
func NewGoogleOAuth2Service() (*GoogleOAuth2Service, error)
func (*GoogleOAuth2Service) ValidateToken ¶
func (g *GoogleOAuth2Service) ValidateToken(token string) (string, error)
type JWTService ¶
type JWTService struct {
// contains filtered or unexported fields
}
func NewJWTService ¶
func NewJWTService(secret string, ur domain.UserRepository) *JWTService
func (*JWTService) GenerateToken ¶
Click to show internal directories.
Click to hide internal directories.