repository

package
v0.0.0-...-af7f365 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 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)
	GetByPlayerIdAndProvider(ctx context.Context, playerId string, provider string) (*entity.OAuthTokenEntity, error)
	GetForEmail(ctx context.Context, provider, tenant, email string) (*entity.OAuthTokenEntity, error)
	Save(ctx context.Context, oAuthToken entity.OAuthTokenEntity) (*entity.OAuthTokenEntity, error)
	Update(ctx context.Context, playerId, provider, accessToken, refreshToken string, expiresAt time.Time) (*entity.OAuthTokenEntity, error)
	MarkForManualRefresh(ctx context.Context, playerId, provider string) error
	DeleteByPlayerIdAndProvider(ctx context.Context, playerId string, provider 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