usecase

package
v0.0.0-...-2f4d8a3 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FindSystemOwnerByOrganizationNameFunc

type FindSystemOwnerByOrganizationNameFunc func(context.Context, userS.RepositoryFactory, string) (userS.SystemOwner, error)

type GoogleUserUsecase

type GoogleUserUsecase interface {
	RetrieveAccessToken(ctx context.Context, code string) (*service.GoogleAuthResponse, error)

	RetrieveUserInfo(ctx context.Context, GoogleAuthResponse *service.GoogleAuthResponse) (*service.GoogleUserInfo, error)

	RegisterAppUser(ctx context.Context, googleUserInfo *service.GoogleUserInfo, googleAuthResponse *service.GoogleAuthResponse, organizationName string) (*service.TokenSet, error)
}

func NewGoogleUserUsecase

func NewGoogleUserUsecase(transaction service.Transaction, googleAuthClient service.GoogleAuthClient, authTokenManager service.AuthTokenManager, registerAppUserCallback func(ctx context.Context, organizationName string, appUser userD.AppUserModel) error, findSystemOwnerByOrganizationNameFunc FindSystemOwnerByOrganizationNameFunc) GoogleUserUsecase

type GuestUserUsecase

type GuestUserUsecase interface {
	RetrieveGuestToken(ctx context.Context, organizationName string) (*service.TokenSet, error)
}

func NewGuestUserUsecase

func NewGuestUserUsecase(transaction service.Transaction, authTokenManager service.AuthTokenManager) GuestUserUsecase

Jump to

Keyboard shortcuts

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