usecases

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JWKSResult

type JWKSResult struct {
	KeySet jwk.Set
}

type JWKSUseCase

type JWKSUseCase interface {
	GetJWKS(ctx context.Context) (*JWKSResult, error)
}

func NewJWKSUseCase

func NewJWKSUseCase(
	logger models.Logger,
	service services.CacheService,
) JWKSUseCase

type JWKSUseCaseImpl

type JWKSUseCaseImpl struct {
	Logger  models.Logger
	Service services.CacheService
}

func (*JWKSUseCaseImpl) GetJWKS

func (uc *JWKSUseCaseImpl) GetJWKS(ctx context.Context) (*JWKSResult, error)

type RefreshTokenResult

type RefreshTokenResult struct {
	AccessToken  string
	RefreshToken string
}

type RefreshTokenUseCase

type RefreshTokenUseCase interface {
	RefreshTokens(ctx context.Context, refreshToken string) (*RefreshTokenResult, error)
}

func NewRefreshTokenUseCase

func NewRefreshTokenUseCase(
	logger models.Logger,
	service services.RefreshTokenService,
) RefreshTokenUseCase

type RefreshTokenUseCaseImpl

type RefreshTokenUseCaseImpl struct {
	Logger  models.Logger
	Service services.RefreshTokenService
}

func (*RefreshTokenUseCaseImpl) RefreshTokens

func (uc *RefreshTokenUseCaseImpl) RefreshTokens(ctx context.Context, refreshToken string) (*RefreshTokenResult, error)

type UseCases

type UseCases struct {
	RefreshTokenUseCase RefreshTokenUseCase
	JWKSUseCase         JWKSUseCase
}

func NewUseCases

func NewUseCases(
	refreshTokenUseCase RefreshTokenUseCase,
	jwksUseCase JWKSUseCase,
) *UseCases

Jump to

Keyboard shortcuts

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