repository

package
v0.0.0-...-0ce59a9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL