Documentation ¶
Index ¶
- type UseCase
- func (uc *UseCase) CreateLog(ctx context.Context, organizationID, ledgerID, auditID uuid.UUID, ...) error
- func (uc *UseCase) GetAuditInfo(ctx context.Context, organizationID uuid.UUID, ledgerID uuid.UUID, ...) (*audit.Audit, error)
- func (uc *UseCase) GetLogByHash(ctx context.Context, treeID int64, identityHash string) (string, []byte, error)
- func (uc *UseCase) ValidatedLogHash(ctx context.Context, treeID int64, identityHash string) (string, string, bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UseCase ¶
type UseCase struct { // TrillianRepo provides an abstraction on top of Trillian gRPC. TrillianRepo out.Repository // AuditRepo provides an abstraction on top of the audit data source AuditRepo audit.Repository }
UseCase is a struct that aggregates various repositories for simplified access in use case implementation.
func (*UseCase) CreateLog ¶
func (uc *UseCase) CreateLog(ctx context.Context, organizationID, ledgerID, auditID uuid.UUID, data []mmodel.QueueData) error
CreateLog creates an audit log for the operations of a transaction
func (*UseCase) GetAuditInfo ¶
func (uc *UseCase) GetAuditInfo(ctx context.Context, organizationID uuid.UUID, ledgerID uuid.UUID, id uuid.UUID) (*audit.Audit, error)
GetAuditInfo retrieves auditing information
Click to show internal directories.
Click to hide internal directories.