Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OAuthTokenRepository ¶
type OAuthTokenRepository interface { GetAll(ctx context.Context) ([]entity.OAuthTokenEntity, error) GetByTenant(ctx context.Context, tenant string) ([]entity.OAuthTokenEntity, error) GetByProvider(ctx context.Context, tenant string, provider string) ([]entity.OAuthTokenEntity, error) GetByEmail(ctx context.Context, tenant, provider, email string) (*entity.OAuthTokenEntity, error) GetByPlayerId(ctx context.Context, tenant, provider, playerId string) (*entity.OAuthTokenEntity, error) Save(ctx context.Context, oAuthToken entity.OAuthTokenEntity) (*entity.OAuthTokenEntity, error) Update(ctx context.Context, tenant, playerId, provider, accessToken, refreshToken string, expiresAt time.Time) (*entity.OAuthTokenEntity, error) MarkForManualRefresh(ctx context.Context, tenant, playerId, provider string) error DeleteByEmail(ctx context.Context, tenant, provider, email string) error }
func NewOAuthTokenRepository ¶
func NewOAuthTokenRepository(db *gorm.DB) OAuthTokenRepository
type SlackSettingsRepository ¶
type SlackSettingsRepository interface { Get(tenant string) (*entity.SlackSettingsEntity, error) Save(slackSettings entity.SlackSettingsEntity) (*entity.SlackSettingsEntity, error) Delete(tenant string) error }
func NewSlackSettingsRepository ¶
func NewSlackSettingsRepository(db *gorm.DB) SlackSettingsRepository
Source Files ¶
Click to show internal directories.
Click to hide internal directories.