Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoogleService ¶
type GoogleService interface { ServiceAccountCredentialsExistsForTenant(ctx context.Context, tenant string) (bool, error) GetGmailService(ctx context.Context, username, tenant string) (*gmail.Service, error) GetGmailServiceWithServiceAccount(ctx context.Context, username string, tenant string) (*gmail.Service, error) GetGCalServiceWithServiceAccount(ctx context.Context, username string, tenant string) (*calendar.Service, error) GetGmailServiceWithOauthToken(ctx context.Context, tokenEntity authEntity.OAuthTokenEntity) (*gmail.Service, error) GetGCalServiceWithOauthToken(ctx context.Context, tokenEntity authEntity.OAuthTokenEntity) (*calendar.Service, error) }
func NewGoogleService ¶
func NewGoogleService(cfg *config.Config, postgresRepositories *postgresRepository.Repositories, authRepositories *authRepository.Repositories, services *Services) GoogleService
type OAuthTokenService ¶
type OAuthTokenService interface { Save(ctx context.Context, tokenEntity entity.OAuthTokenEntity) (*entity.OAuthTokenEntity, error) GetByPlayerIdAndProvider(ctx context.Context, playerId string, provider string) (*entity.OAuthTokenEntity, error) DeleteByPlayerIdAndProvider(ctx context.Context, playerId string, provider string) error }
func NewOAuthTokenService ¶
func NewOAuthTokenService(repositories *repository.Repositories) OAuthTokenService
type Services ¶
type Services struct { CommonServices *commonService.Services CommonAuthRepositories *repository.Repositories OAuthTokenService OAuthTokenService GoogleService GoogleService }
func InitServices ¶
Click to show internal directories.
Click to hide internal directories.