services

package
v1.31.0-beta.18 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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

func (*UseCase) GetLogByHash

func (uc *UseCase) GetLogByHash(ctx context.Context, treeID int64, identityHash string) (string, []byte, error)

GetLogByHash search for leaf value by the leaf identity hash

func (*UseCase) ValidatedLogHash

func (uc *UseCase) ValidatedLogHash(ctx context.Context, treeID int64, identityHash string) (string, string, bool, error)

ValidatedLogHash checks if the leaf value was tampered

Jump to

Keyboard shortcuts

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