Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrUserNotFound is user not found. ErrUserNotFound = errors.NotFound(v1.ErrorReason_USER_NOT_FOUND.String(), "user not found") )
View Source
var ProviderSet = wire.NewSet(NewVerifierUsecase, NewTransactionUsecase, NewReportTeeAttestationEventUsecase)
ProviderSet is biz providers.
Functions ¶
This section is empty.
Types ¶
type ReportTeeAttestationEventRepo ¶
type ReportTeeAttestationEventRepo interface {
CreateReportTeeAttestationEvent(context.Context, ReportTeeAttestationEvent) (*ReportTeeAttestationEvent, error)
}
type ReportTeeAttestationEventUsecase ¶
type ReportTeeAttestationEventUsecase struct {
// contains filtered or unexported fields
}
func NewReportTeeAttestationEventUsecase ¶
func NewReportTeeAttestationEventUsecase(repo ReportTeeAttestationEventRepo, logger *log.Helper) *ReportTeeAttestationEventUsecase
func (*ReportTeeAttestationEventUsecase) CreateReportTeeAttestationEvent ¶
func (rtaeUsecase *ReportTeeAttestationEventUsecase) CreateReportTeeAttestationEvent(ctx context.Context, event ReportTeeAttestationEvent) (*ReportTeeAttestationEvent, error)
type Transaction ¶
type TransactionRepo ¶
type TransactionRepo interface {
CreateTransaction(context.Context, *Transaction) (*Transaction, error)
}
type TransactionUsecase ¶
type TransactionUsecase struct {
// contains filtered or unexported fields
}
func NewTransactionUsecase ¶
func NewTransactionUsecase(repo TransactionRepo, logger *log.Helper) *TransactionUsecase
func (*TransactionUsecase) CreateTransaction ¶
func (trx *TransactionUsecase) CreateTransaction(ctx context.Context, transaction *Transaction) (*Transaction, error)
type VerifierRepo ¶
type VerifierUsecase ¶
type VerifierUsecase struct {
// contains filtered or unexported fields
}
VerifierUsecase is a Verifier usecase.
func NewVerifierUsecase ¶
func NewVerifierUsecase(repo VerifierRepo, logger *log.Helper) *VerifierUsecase
NewVerifierUsecase new a Verifier usecase.
func (*VerifierUsecase) CreateVerifier ¶
CreateVerifier creates a Verifier, and returns the new Verifier.
Click to show internal directories.
Click to hide internal directories.