blockchain

package
v0.0.0-...-17e6b21 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditLog

type AuditLog struct {
	ID          string                 `json:"id"`
	Action      string                 `json:"action"`
	EntityType  string                 `json:"entityType"`
	EntityID    string                 `json:"entityId"`
	UserID      string                 `json:"userId"`
	Timestamp   time.Time              `json:"timestamp"`
	Metadata    map[string]interface{} `json:"metadata"`
	PrevHash    string                 `json:"prevHash"`
	CurrentHash string                 `json:"currentHash"`
}

type BlockchainAuditStore

type BlockchainAuditStore struct {
	// contains filtered or unexported fields
}

func NewBlockchainAuditStore

func NewBlockchainAuditStore(client *channel.Client, tracer tracing.Tracer) *BlockchainAuditStore

func (*BlockchainAuditStore) GetAuditTrail

func (s *BlockchainAuditStore) GetAuditTrail(ctx context.Context, entityID string) ([]AuditLog, error)

func (*BlockchainAuditStore) LogAudit

func (s *BlockchainAuditStore) LogAudit(ctx context.Context, log AuditLog) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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