service

package
v0.0.0-...-df3562f Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppUserInfo

type AppUserInfo struct {
	LoginID          string
	AppUserID        int
	Username         string
	OrganizationID   int
	OrganizationName string
}

type AppUserInterface

type AppUserInterface interface {
	AppUserID() *rsuserdomain.AppUserID
	OrganizationID() *rsuserdomain.OrganizationID
	LoginID() string
	Username() string
}

type AuthTokenManager

type AuthTokenManager interface {
	GetUserInfo(ctx context.Context, tokenString string) (*AppUserInfo, error)

	CreateTokenSet(ctx context.Context, appUser AppUserInterface, organizationUsecase OrganizationInterface) (*domain.AuthTokenSet, error)
	RefreshToken(ctx context.Context, accessToken string) (string, error)
}

type OrganizationInterface

type OrganizationInterface interface {
	OrganizationID() *rsuserdomain.OrganizationID
	Name() string
}

type RepositoryFactory

type RepositoryFactory interface {
	NewRedstartRepositoryFactory(ctx context.Context) (rsuserservice.RepositoryFactory, error)

	NewStateRepository(ctx context.Context) (StateRepository, error)
}

type StateRepository

type StateRepository interface {
	GenerateState(ctx context.Context) (string, error)

	DoesStateExists(ctx context.Context, state string) (bool, error)
}

type TransactionManager

type TransactionManager interface {
	Do(ctx context.Context, fn func(rf RepositoryFactory) error) error
}

Jump to

Keyboard shortcuts

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