Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockBlock
- func (m *MockBlock) Clone() interfaces.Block
- func (m *MockBlock) ComputeHash() ([]byte, error)
- func (m *MockBlock) EXPECT() *MockBlockMockRecorder
- func (m *MockBlock) GetCachedHash() []byte
- func (m *MockBlock) GetData() []byte
- func (m *MockBlock) GetDifficulty() any
- func (m *MockBlock) GetHashAlgorithm() string
- func (m *MockBlock) GetHashableBytes() ([]byte, error)
- func (m *MockBlock) GetIndex() uint64
- func (m *MockBlock) GetMetadata() map[string]any
- func (m *MockBlock) GetNonce() uint64
- func (m *MockBlock) GetPreviousHash() string
- func (m *MockBlock) GetProof() []byte
- func (m *MockBlock) GetProposer() string
- func (m *MockBlock) GetSize() int
- func (m *MockBlock) GetTimestamp() time.Time
- func (m *MockBlock) InvalidateCache()
- func (m *MockBlock) Serialize() ([]byte, error)
- func (m *MockBlock) SetData(data []byte)
- func (m *MockBlock) SetDifficulty(difficulty any)
- func (m *MockBlock) SetMetadata(metadata map[string]any)
- func (m *MockBlock) SetNonce(nonce uint64)
- func (m *MockBlock) SetProof(proof []byte)
- func (m *MockBlock) SetProposer(proposer string)
- func (m *MockBlock) Validate() error
- func (m *MockBlock) Verify(hash []byte) (bool, error)
- type MockBlockMockRecorder
- func (mr *MockBlockMockRecorder) Clone() *gomock.Call
- func (mr *MockBlockMockRecorder) ComputeHash() *gomock.Call
- func (mr *MockBlockMockRecorder) GetCachedHash() *gomock.Call
- func (mr *MockBlockMockRecorder) GetData() *gomock.Call
- func (mr *MockBlockMockRecorder) GetDifficulty() *gomock.Call
- func (mr *MockBlockMockRecorder) GetHashAlgorithm() *gomock.Call
- func (mr *MockBlockMockRecorder) GetHashableBytes() *gomock.Call
- func (mr *MockBlockMockRecorder) GetIndex() *gomock.Call
- func (mr *MockBlockMockRecorder) GetMetadata() *gomock.Call
- func (mr *MockBlockMockRecorder) GetNonce() *gomock.Call
- func (mr *MockBlockMockRecorder) GetPreviousHash() *gomock.Call
- func (mr *MockBlockMockRecorder) GetProof() *gomock.Call
- func (mr *MockBlockMockRecorder) GetProposer() *gomock.Call
- func (mr *MockBlockMockRecorder) GetSize() *gomock.Call
- func (mr *MockBlockMockRecorder) GetTimestamp() *gomock.Call
- func (mr *MockBlockMockRecorder) InvalidateCache() *gomock.Call
- func (mr *MockBlockMockRecorder) Serialize() *gomock.Call
- func (mr *MockBlockMockRecorder) SetData(data any) *gomock.Call
- func (mr *MockBlockMockRecorder) SetDifficulty(difficulty any) *gomock.Call
- func (mr *MockBlockMockRecorder) SetMetadata(metadata any) *gomock.Call
- func (mr *MockBlockMockRecorder) SetNonce(nonce any) *gomock.Call
- func (mr *MockBlockMockRecorder) SetProof(proof any) *gomock.Call
- func (mr *MockBlockMockRecorder) SetProposer(proposer any) *gomock.Call
- func (mr *MockBlockMockRecorder) Validate() *gomock.Call
- func (mr *MockBlockMockRecorder) Verify(hash any) *gomock.Call
- type MockConsensus
- func (m *MockConsensus) AdjustDifficulty(blocks []interfaces.Block) error
- func (m *MockConsensus) EXPECT() *MockConsensusMockRecorder
- func (m *MockConsensus) GetConsensusType() string
- func (m *MockConsensus) GetDifficulty() any
- func (m *MockConsensus) GetMetrics() interfaces.ConsensusMetrics
- func (m *MockConsensus) GetStatus() interfaces.ConsensusStatus
- func (m *MockConsensus) OnBlockAccepted(block interfaces.Block) error
- func (m *MockConsensus) OnBlockRejected(block interfaces.Block, reason error) error
- func (m *MockConsensus) ProposeBlock(data []byte) (interfaces.Block, error)
- func (m *MockConsensus) RegisterValidator(validator interfaces.Validator) error
- func (m *MockConsensus) RegisterWorker(worker interfaces.Worker) error
- func (m *MockConsensus) Start(ctx context.Context) error
- func (m *MockConsensus) Stop() error
- func (m *MockConsensus) ValidateBlock(block interfaces.Block) error
- type MockConsensusMockRecorder
- func (mr *MockConsensusMockRecorder) AdjustDifficulty(blocks any) *gomock.Call
- func (mr *MockConsensusMockRecorder) GetConsensusType() *gomock.Call
- func (mr *MockConsensusMockRecorder) GetDifficulty() *gomock.Call
- func (mr *MockConsensusMockRecorder) GetMetrics() *gomock.Call
- func (mr *MockConsensusMockRecorder) GetStatus() *gomock.Call
- func (mr *MockConsensusMockRecorder) OnBlockAccepted(block any) *gomock.Call
- func (mr *MockConsensusMockRecorder) OnBlockRejected(block, reason any) *gomock.Call
- func (mr *MockConsensusMockRecorder) ProposeBlock(data any) *gomock.Call
- func (mr *MockConsensusMockRecorder) RegisterValidator(validator any) *gomock.Call
- func (mr *MockConsensusMockRecorder) RegisterWorker(worker any) *gomock.Call
- func (mr *MockConsensusMockRecorder) Start(ctx any) *gomock.Call
- func (mr *MockConsensusMockRecorder) Stop() *gomock.Call
- func (mr *MockConsensusMockRecorder) ValidateBlock(block any) *gomock.Call
- type MockDifficultyCalculator
- func (m *MockDifficultyCalculator) CalculateNextDifficulty(currentDifficulty uint64, blocks []interfaces.Block) (uint64, error)
- func (m *MockDifficultyCalculator) EXPECT() *MockDifficultyCalculatorMockRecorder
- func (m *MockDifficultyCalculator) EstimateNextDifficulty(currentDifficulty uint64, blocks []interfaces.Block) uint64
- func (m *MockDifficultyCalculator) GetAlgorithmName() string
- func (m *MockDifficultyCalculator) GetMaxDifficulty() uint64
- func (m *MockDifficultyCalculator) GetMinDifficulty() uint64
- func (m *MockDifficultyCalculator) GetTargetBlockTime() time.Duration
- func (m *MockDifficultyCalculator) ValidateDifficulty(difficulty uint64) error
- type MockDifficultyCalculatorMockRecorder
- func (mr *MockDifficultyCalculatorMockRecorder) CalculateNextDifficulty(currentDifficulty, blocks any) *gomock.Call
- func (mr *MockDifficultyCalculatorMockRecorder) EstimateNextDifficulty(currentDifficulty, blocks any) *gomock.Call
- func (mr *MockDifficultyCalculatorMockRecorder) GetAlgorithmName() *gomock.Call
- func (mr *MockDifficultyCalculatorMockRecorder) GetMaxDifficulty() *gomock.Call
- func (mr *MockDifficultyCalculatorMockRecorder) GetMinDifficulty() *gomock.Call
- func (mr *MockDifficultyCalculatorMockRecorder) GetTargetBlockTime() *gomock.Call
- func (mr *MockDifficultyCalculatorMockRecorder) ValidateDifficulty(difficulty any) *gomock.Call
- type MockErrorReporter
- func (m *MockErrorReporter) Clear()
- func (m *MockErrorReporter) EXPECT() *MockErrorReporterMockRecorder
- func (m *MockErrorReporter) GetErrorCount() int
- func (m *MockErrorReporter) GetErrors() []error
- func (m *MockErrorReporter) ReportError(err error)
- func (m *MockErrorReporter) ReportErrorWithContext(err error, arg1 map[string]any)
- type MockErrorReporterMockRecorder
- func (mr *MockErrorReporterMockRecorder) Clear() *gomock.Call
- func (mr *MockErrorReporterMockRecorder) GetErrorCount() *gomock.Call
- func (mr *MockErrorReporterMockRecorder) GetErrors() *gomock.Call
- func (mr *MockErrorReporterMockRecorder) ReportError(err any) *gomock.Call
- func (mr *MockErrorReporterMockRecorder) ReportErrorWithContext(err, arg1 any) *gomock.Call
- type MockExtension
- func (m *MockExtension) EXPECT() *MockExtensionMockRecorder
- func (m *MockExtension) Execute(ctx context.Context, input interfaces.ExtensionInput) (interfaces.ExtensionOutput, error)
- func (m *MockExtension) GetMetadata() interfaces.ExtensionMetadata
- func (m *MockExtension) GetName() string
- func (m *MockExtension) GetType() interfaces.ExtensionType
- func (m *MockExtension) Validate(input interfaces.ExtensionInput) error
- type MockExtensionMockRecorder
- func (mr *MockExtensionMockRecorder) Execute(ctx, input any) *gomock.Call
- func (mr *MockExtensionMockRecorder) GetMetadata() *gomock.Call
- func (mr *MockExtensionMockRecorder) GetName() *gomock.Call
- func (mr *MockExtensionMockRecorder) GetType() *gomock.Call
- func (mr *MockExtensionMockRecorder) Validate(input any) *gomock.Call
- type MockHashable
- func (m *MockHashable) ComputeHash() ([]byte, error)
- func (m *MockHashable) EXPECT() *MockHashableMockRecorder
- func (m *MockHashable) GetCachedHash() []byte
- func (m *MockHashable) GetHashAlgorithm() string
- func (m *MockHashable) GetHashableBytes() ([]byte, error)
- func (m *MockHashable) InvalidateCache()
- func (m *MockHashable) Verify(hash []byte) (bool, error)
- type MockHashableMockRecorder
- func (mr *MockHashableMockRecorder) ComputeHash() *gomock.Call
- func (mr *MockHashableMockRecorder) GetCachedHash() *gomock.Call
- func (mr *MockHashableMockRecorder) GetHashAlgorithm() *gomock.Call
- func (mr *MockHashableMockRecorder) GetHashableBytes() *gomock.Call
- func (mr *MockHashableMockRecorder) InvalidateCache() *gomock.Call
- func (mr *MockHashableMockRecorder) Verify(hash any) *gomock.Call
- type MockHasher
- func (m *MockHasher) Clone() interfaces.Hasher
- func (m *MockHasher) EXPECT() *MockHasherMockRecorder
- func (m *MockHasher) GetAlgorithm() string
- func (m *MockHasher) GetHashSize() int
- func (m *MockHasher) Hash(data []byte) ([]byte, error)
- func (m *MockHasher) HashMultiple(data ...[]byte) ([]byte, error)
- func (m *MockHasher) IsSecure() bool
- func (m *MockHasher) Reset()
- type MockHasherMockRecorder
- func (mr *MockHasherMockRecorder) Clone() *gomock.Call
- func (mr *MockHasherMockRecorder) GetAlgorithm() *gomock.Call
- func (mr *MockHasherMockRecorder) GetHashSize() *gomock.Call
- func (mr *MockHasherMockRecorder) Hash(data any) *gomock.Call
- func (mr *MockHasherMockRecorder) HashMultiple(data ...any) *gomock.Call
- func (mr *MockHasherMockRecorder) IsSecure() *gomock.Call
- func (mr *MockHasherMockRecorder) Reset() *gomock.Call
- type MockHook
- func (m *MockHook) ContinueOnError() bool
- func (m *MockHook) EXPECT() *MockHookMockRecorder
- func (m *MockHook) Execute(ctx context.Context, data any) error
- func (m *MockHook) GetName() string
- func (m *MockHook) GetPriority() int
- func (m *MockHook) IsEnabled() bool
- func (m *MockHook) SetEnabled(enabled bool)
- type MockHookMockRecorder
- func (mr *MockHookMockRecorder) ContinueOnError() *gomock.Call
- func (mr *MockHookMockRecorder) Execute(ctx, data any) *gomock.Call
- func (mr *MockHookMockRecorder) GetName() *gomock.Call
- func (mr *MockHookMockRecorder) GetPriority() *gomock.Call
- func (mr *MockHookMockRecorder) IsEnabled() *gomock.Call
- func (mr *MockHookMockRecorder) SetEnabled(enabled any) *gomock.Call
- type MockIterator
- type MockIteratorMockRecorder
- func (mr *MockIteratorMockRecorder) Error() *gomock.Call
- func (mr *MockIteratorMockRecorder) Key() *gomock.Call
- func (mr *MockIteratorMockRecorder) Next() *gomock.Call
- func (mr *MockIteratorMockRecorder) Release() *gomock.Call
- func (mr *MockIteratorMockRecorder) Seek(key any) *gomock.Call
- func (mr *MockIteratorMockRecorder) Value() *gomock.Call
- type MockLogger
- func (m *MockLogger) Debug(msg string, args ...any)
- func (m *MockLogger) EXPECT() *MockLoggerMockRecorder
- func (m *MockLogger) Error(msg string, args ...any)
- func (m *MockLogger) Fatal(msg string, args ...any)
- func (m *MockLogger) Info(msg string, args ...any)
- func (m *MockLogger) Warn(msg string, args ...any)
- func (m *MockLogger) WithField(key string, value any) interfaces.Logger
- func (m *MockLogger) WithFields(fields map[string]any) interfaces.Logger
- type MockLoggerMockRecorder
- func (mr *MockLoggerMockRecorder) Debug(msg any, args ...any) *gomock.Call
- func (mr *MockLoggerMockRecorder) Error(msg any, args ...any) *gomock.Call
- func (mr *MockLoggerMockRecorder) Fatal(msg any, args ...any) *gomock.Call
- func (mr *MockLoggerMockRecorder) Info(msg any, args ...any) *gomock.Call
- func (mr *MockLoggerMockRecorder) Warn(msg any, args ...any) *gomock.Call
- func (mr *MockLoggerMockRecorder) WithField(key, value any) *gomock.Call
- func (mr *MockLoggerMockRecorder) WithFields(fields any) *gomock.Call
- type MockPlugin
- func (m *MockPlugin) EXPECT() *MockPluginMockRecorder
- func (m *MockPlugin) GetCapabilities() []interfaces.Capability
- func (m *MockPlugin) GetDependencies() []string
- func (m *MockPlugin) GetName() string
- func (m *MockPlugin) GetStatus() interfaces.PluginStatus
- func (m *MockPlugin) GetVersion() string
- func (m *MockPlugin) Initialize(ctx context.Context, config map[string]any) error
- func (m *MockPlugin) Start(ctx context.Context) error
- func (m *MockPlugin) Stop() error
- type MockPluginMockRecorder
- func (mr *MockPluginMockRecorder) GetCapabilities() *gomock.Call
- func (mr *MockPluginMockRecorder) GetDependencies() *gomock.Call
- func (mr *MockPluginMockRecorder) GetName() *gomock.Call
- func (mr *MockPluginMockRecorder) GetStatus() *gomock.Call
- func (mr *MockPluginMockRecorder) GetVersion() *gomock.Call
- func (mr *MockPluginMockRecorder) Initialize(ctx, config any) *gomock.Call
- func (mr *MockPluginMockRecorder) Start(ctx any) *gomock.Call
- func (mr *MockPluginMockRecorder) Stop() *gomock.Call
- type MockStateTransition
- func (m *MockStateTransition) AddChange(key string, oldValue, newValue any)
- func (m *MockStateTransition) Apply() error
- func (m *MockStateTransition) EXPECT() *MockStateTransitionMockRecorder
- func (m *MockStateTransition) GetChanges() map[string]interfaces.StateChange
- func (m *MockStateTransition) Rollback() error
- func (m *MockStateTransition) Validate() error
- type MockStateTransitionMockRecorder
- func (mr *MockStateTransitionMockRecorder) AddChange(key, oldValue, newValue any) *gomock.Call
- func (mr *MockStateTransitionMockRecorder) Apply() *gomock.Call
- func (mr *MockStateTransitionMockRecorder) GetChanges() *gomock.Call
- func (mr *MockStateTransitionMockRecorder) Rollback() *gomock.Call
- func (mr *MockStateTransitionMockRecorder) Validate() *gomock.Call
- type MockStorage
- func (m *MockStorage) BatchDelete(keys [][]byte) error
- func (m *MockStorage) BatchGet(keys [][]byte) (map[string][]byte, error)
- func (m *MockStorage) BatchPut(items map[string][]byte) error
- func (m *MockStorage) BeginTransaction() interfaces.Transaction
- func (m *MockStorage) Close() error
- func (m *MockStorage) Compact() error
- func (m *MockStorage) Delete(key []byte) error
- func (m *MockStorage) EXPECT() *MockStorageMockRecorder
- func (m *MockStorage) Get(key []byte) ([]byte, error)
- func (m *MockStorage) GetStats() interfaces.StorageStats
- func (m *MockStorage) Has(key []byte) (bool, error)
- func (m *MockStorage) NewIterator(prefix []byte) interfaces.Iterator
- func (m *MockStorage) Put(key, value []byte) error
- type MockStorageMockRecorder
- func (mr *MockStorageMockRecorder) BatchDelete(keys any) *gomock.Call
- func (mr *MockStorageMockRecorder) BatchGet(keys any) *gomock.Call
- func (mr *MockStorageMockRecorder) BatchPut(items any) *gomock.Call
- func (mr *MockStorageMockRecorder) BeginTransaction() *gomock.Call
- func (mr *MockStorageMockRecorder) Close() *gomock.Call
- func (mr *MockStorageMockRecorder) Compact() *gomock.Call
- func (mr *MockStorageMockRecorder) Delete(key any) *gomock.Call
- func (mr *MockStorageMockRecorder) Get(key any) *gomock.Call
- func (mr *MockStorageMockRecorder) GetStats() *gomock.Call
- func (mr *MockStorageMockRecorder) Has(key any) *gomock.Call
- func (mr *MockStorageMockRecorder) NewIterator(prefix any) *gomock.Call
- func (mr *MockStorageMockRecorder) Put(key, value any) *gomock.Call
- type MockTransaction
- func (m *MockTransaction) Commit() error
- func (m *MockTransaction) Delete(key []byte) error
- func (m *MockTransaction) Discard()
- func (m *MockTransaction) EXPECT() *MockTransactionMockRecorder
- func (m *MockTransaction) Get(key []byte) ([]byte, error)
- func (m *MockTransaction) Put(key, value []byte) error
- func (m *MockTransaction) Rollback() error
- type MockTransactionMockRecorder
- func (mr *MockTransactionMockRecorder) Commit() *gomock.Call
- func (mr *MockTransactionMockRecorder) Delete(key any) *gomock.Call
- func (mr *MockTransactionMockRecorder) Discard() *gomock.Call
- func (mr *MockTransactionMockRecorder) Get(key any) *gomock.Call
- func (mr *MockTransactionMockRecorder) Put(key, value any) *gomock.Call
- func (mr *MockTransactionMockRecorder) Rollback() *gomock.Call
- type MockValidationPipeline
- func (m *MockValidationPipeline) AddValidator(validator interfaces.Validator) error
- func (m *MockValidationPipeline) EXPECT() *MockValidationPipelineMockRecorder
- func (m *MockValidationPipeline) Execute(ctx context.Context, block interfaces.Block) interfaces.ValidationResult
- func (m *MockValidationPipeline) ExecuteParallel(ctx context.Context, block interfaces.Block) interfaces.ValidationResult
- func (m *MockValidationPipeline) GetMetrics() interfaces.ValidatorMetrics
- func (m *MockValidationPipeline) GetValidators() []interfaces.Validator
- func (m *MockValidationPipeline) RemoveValidator(name string) error
- func (m *MockValidationPipeline) SetStopOnFirstError(stop bool)
- type MockValidationPipelineMockRecorder
- func (mr *MockValidationPipelineMockRecorder) AddValidator(validator any) *gomock.Call
- func (mr *MockValidationPipelineMockRecorder) Execute(ctx, block any) *gomock.Call
- func (mr *MockValidationPipelineMockRecorder) ExecuteParallel(ctx, block any) *gomock.Call
- func (mr *MockValidationPipelineMockRecorder) GetMetrics() *gomock.Call
- func (mr *MockValidationPipelineMockRecorder) GetValidators() *gomock.Call
- func (mr *MockValidationPipelineMockRecorder) RemoveValidator(name any) *gomock.Call
- func (mr *MockValidationPipelineMockRecorder) SetStopOnFirstError(stop any) *gomock.Call
- type MockValidator
- func (m *MockValidator) EXPECT() *MockValidatorMockRecorder
- func (m *MockValidator) GetMetrics() interfaces.ValidatorMetrics
- func (m *MockValidator) GetName() string
- func (m *MockValidator) GetPriority() int
- func (m *MockValidator) GetValidationRules() []interfaces.ValidationRule
- func (m *MockValidator) IsEnabled() bool
- func (m *MockValidator) SetEnabled(enabled bool)
- func (m *MockValidator) Validate(ctx context.Context, block interfaces.Block) interfaces.ValidationResult
- func (m *MockValidator) ValidateChain(ctx context.Context, blocks []interfaces.Block) interfaces.ValidationResult
- type MockValidatorMockRecorder
- func (mr *MockValidatorMockRecorder) GetMetrics() *gomock.Call
- func (mr *MockValidatorMockRecorder) GetName() *gomock.Call
- func (mr *MockValidatorMockRecorder) GetPriority() *gomock.Call
- func (mr *MockValidatorMockRecorder) GetValidationRules() *gomock.Call
- func (mr *MockValidatorMockRecorder) IsEnabled() *gomock.Call
- func (mr *MockValidatorMockRecorder) SetEnabled(enabled any) *gomock.Call
- func (mr *MockValidatorMockRecorder) Validate(ctx, block any) *gomock.Call
- func (mr *MockValidatorMockRecorder) ValidateChain(ctx, blocks any) *gomock.Call
- type MockWorkPackage
- func (m *MockWorkPackage) EXPECT() *MockWorkPackageMockRecorder
- func (m *MockWorkPackage) GetBlockTemplate() interfaces.Block
- func (m *MockWorkPackage) GetCreatedAt() time.Time
- func (m *MockWorkPackage) GetDifficulty() uint64
- func (m *MockWorkPackage) GetJobID() string
- func (m *MockWorkPackage) GetParameters() map[string]any
- func (m *MockWorkPackage) GetTarget() []byte
- func (m *MockWorkPackage) GetTimeout() time.Duration
- func (m *MockWorkPackage) IsStale() bool
- func (m *MockWorkPackage) SetParameters(params map[string]any)
- func (m *MockWorkPackage) Validate() error
- type MockWorkPackageMockRecorder
- func (mr *MockWorkPackageMockRecorder) GetBlockTemplate() *gomock.Call
- func (mr *MockWorkPackageMockRecorder) GetCreatedAt() *gomock.Call
- func (mr *MockWorkPackageMockRecorder) GetDifficulty() *gomock.Call
- func (mr *MockWorkPackageMockRecorder) GetJobID() *gomock.Call
- func (mr *MockWorkPackageMockRecorder) GetParameters() *gomock.Call
- func (mr *MockWorkPackageMockRecorder) GetTarget() *gomock.Call
- func (mr *MockWorkPackageMockRecorder) GetTimeout() *gomock.Call
- func (mr *MockWorkPackageMockRecorder) IsStale() *gomock.Call
- func (mr *MockWorkPackageMockRecorder) SetParameters(params any) *gomock.Call
- func (mr *MockWorkPackageMockRecorder) Validate() *gomock.Call
- type MockWorkResult
- func (m *MockWorkResult) EXPECT() *MockWorkResultMockRecorder
- func (m *MockWorkResult) GetBlock() interfaces.Block
- func (m *MockWorkResult) GetDuration() time.Duration
- func (m *MockWorkResult) GetJobID() string
- func (m *MockWorkResult) GetMetadata() map[string]any
- func (m *MockWorkResult) GetProof() []byte
- func (m *MockWorkResult) GetThroughput() float64
- func (m *MockWorkResult) GetTimestamp() time.Time
- func (m *MockWorkResult) GetWorkerID() string
- func (m *MockWorkResult) Verify() error
- type MockWorkResultMockRecorder
- func (mr *MockWorkResultMockRecorder) GetBlock() *gomock.Call
- func (mr *MockWorkResultMockRecorder) GetDuration() *gomock.Call
- func (mr *MockWorkResultMockRecorder) GetJobID() *gomock.Call
- func (mr *MockWorkResultMockRecorder) GetMetadata() *gomock.Call
- func (mr *MockWorkResultMockRecorder) GetProof() *gomock.Call
- func (mr *MockWorkResultMockRecorder) GetThroughput() *gomock.Call
- func (mr *MockWorkResultMockRecorder) GetTimestamp() *gomock.Call
- func (mr *MockWorkResultMockRecorder) GetWorkerID() *gomock.Call
- func (mr *MockWorkResultMockRecorder) Verify() *gomock.Call
- type MockWorker
- func (m *MockWorker) EXPECT() *MockWorkerMockRecorder
- func (m *MockWorker) GetAddress() string
- func (m *MockWorker) GetID() string
- func (m *MockWorker) GetMetrics() interfaces.WorkerMetrics
- func (m *MockWorker) GetThroughput() float64
- func (m *MockWorker) GetWorkerCount() int
- func (m *MockWorker) IsRunning() bool
- func (m *MockWorker) Process(ctx context.Context, work interfaces.WorkPackage) (interfaces.WorkResult, error)
- func (m *MockWorker) RegisterListener(listener interfaces.WorkerListener)
- func (m *MockWorker) SetAddress(address string) error
- func (m *MockWorker) SetWorkerCount(count int) error
- func (m *MockWorker) Start(ctx context.Context) error
- func (m *MockWorker) Stop() error
- func (m *MockWorker) UnregisterListener(listener interfaces.WorkerListener)
- type MockWorkerListener
- func (m *MockWorkerListener) EXPECT() *MockWorkerListenerMockRecorder
- func (m *MockWorkerListener) OnThroughputUpdated(workerID string, throughput float64)
- func (m *MockWorkerListener) OnWorkCancelled(workerID string)
- func (m *MockWorkerListener) OnWorkCompleted(workerID string, result interfaces.WorkResult)
- func (m *MockWorkerListener) OnWorkFailed(workerID string, err error)
- func (m *MockWorkerListener) OnWorkProgress(workerID string, progress float64)
- func (m *MockWorkerListener) OnWorkStarted(workerID string, work interfaces.WorkPackage)
- type MockWorkerListenerMockRecorder
- func (mr *MockWorkerListenerMockRecorder) OnThroughputUpdated(workerID, throughput any) *gomock.Call
- func (mr *MockWorkerListenerMockRecorder) OnWorkCancelled(workerID any) *gomock.Call
- func (mr *MockWorkerListenerMockRecorder) OnWorkCompleted(workerID, result any) *gomock.Call
- func (mr *MockWorkerListenerMockRecorder) OnWorkFailed(workerID, err any) *gomock.Call
- func (mr *MockWorkerListenerMockRecorder) OnWorkProgress(workerID, progress any) *gomock.Call
- func (mr *MockWorkerListenerMockRecorder) OnWorkStarted(workerID, work any) *gomock.Call
- type MockWorkerMockRecorder
- func (mr *MockWorkerMockRecorder) GetAddress() *gomock.Call
- func (mr *MockWorkerMockRecorder) GetID() *gomock.Call
- func (mr *MockWorkerMockRecorder) GetMetrics() *gomock.Call
- func (mr *MockWorkerMockRecorder) GetThroughput() *gomock.Call
- func (mr *MockWorkerMockRecorder) GetWorkerCount() *gomock.Call
- func (mr *MockWorkerMockRecorder) IsRunning() *gomock.Call
- func (mr *MockWorkerMockRecorder) Process(ctx, work any) *gomock.Call
- func (mr *MockWorkerMockRecorder) RegisterListener(listener any) *gomock.Call
- func (mr *MockWorkerMockRecorder) SetAddress(address any) *gomock.Call
- func (mr *MockWorkerMockRecorder) SetWorkerCount(count any) *gomock.Call
- func (mr *MockWorkerMockRecorder) Start(ctx any) *gomock.Call
- func (mr *MockWorkerMockRecorder) Stop() *gomock.Call
- func (mr *MockWorkerMockRecorder) UnregisterListener(listener any) *gomock.Call
- type MockWorkerPool
- func (m *MockWorkerPool) AddWorker(worker interfaces.Worker) error
- func (m *MockWorkerPool) EXPECT() *MockWorkerPoolMockRecorder
- func (m *MockWorkerPool) GetResult(ctx context.Context) (interfaces.WorkResult, error)
- func (m *MockWorkerPool) GetWorkers() []interfaces.Worker
- func (m *MockWorkerPool) IsRunning() bool
- func (m *MockWorkerPool) RemoveWorker(workerID string) error
- func (m *MockWorkerPool) Start(ctx context.Context) error
- func (m *MockWorkerPool) Stop(ctx context.Context) error
- func (m *MockWorkerPool) Submit(work interfaces.WorkPackage) error
- type MockWorkerPoolMockRecorder
- func (mr *MockWorkerPoolMockRecorder) AddWorker(worker any) *gomock.Call
- func (mr *MockWorkerPoolMockRecorder) GetResult(ctx any) *gomock.Call
- func (mr *MockWorkerPoolMockRecorder) GetWorkers() *gomock.Call
- func (mr *MockWorkerPoolMockRecorder) IsRunning() *gomock.Call
- func (mr *MockWorkerPoolMockRecorder) RemoveWorker(workerID any) *gomock.Call
- func (mr *MockWorkerPoolMockRecorder) Start(ctx any) *gomock.Call
- func (mr *MockWorkerPoolMockRecorder) Stop(ctx any) *gomock.Call
- func (mr *MockWorkerPoolMockRecorder) Submit(work any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBlock ¶
type MockBlock struct {
// contains filtered or unexported fields
}
MockBlock is a mock of Block interface.
func NewMockBlock ¶
func NewMockBlock(ctrl *gomock.Controller) *MockBlock
NewMockBlock creates a new mock instance.
func (*MockBlock) ComputeHash ¶
ComputeHash mocks base method.
func (*MockBlock) EXPECT ¶
func (m *MockBlock) EXPECT() *MockBlockMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockBlock) GetCachedHash ¶
GetCachedHash mocks base method.
func (*MockBlock) GetDifficulty ¶
GetDifficulty mocks base method.
func (*MockBlock) GetHashAlgorithm ¶
GetHashAlgorithm mocks base method.
func (*MockBlock) GetHashableBytes ¶
GetHashableBytes mocks base method.
func (*MockBlock) GetMetadata ¶
GetMetadata mocks base method.
func (*MockBlock) GetPreviousHash ¶
GetPreviousHash mocks base method.
func (*MockBlock) GetProposer ¶
GetProposer mocks base method.
func (*MockBlock) GetTimestamp ¶
GetTimestamp mocks base method.
func (*MockBlock) InvalidateCache ¶
func (m *MockBlock) InvalidateCache()
InvalidateCache mocks base method.
func (*MockBlock) SetDifficulty ¶
SetDifficulty mocks base method.
func (*MockBlock) SetMetadata ¶
SetMetadata mocks base method.
func (*MockBlock) SetProposer ¶
SetProposer mocks base method.
type MockBlockMockRecorder ¶
type MockBlockMockRecorder struct {
// contains filtered or unexported fields
}
MockBlockMockRecorder is the mock recorder for MockBlock.
func (*MockBlockMockRecorder) Clone ¶
func (mr *MockBlockMockRecorder) Clone() *gomock.Call
Clone indicates an expected call of Clone.
func (*MockBlockMockRecorder) ComputeHash ¶
func (mr *MockBlockMockRecorder) ComputeHash() *gomock.Call
ComputeHash indicates an expected call of ComputeHash.
func (*MockBlockMockRecorder) GetCachedHash ¶
func (mr *MockBlockMockRecorder) GetCachedHash() *gomock.Call
GetCachedHash indicates an expected call of GetCachedHash.
func (*MockBlockMockRecorder) GetData ¶
func (mr *MockBlockMockRecorder) GetData() *gomock.Call
GetData indicates an expected call of GetData.
func (*MockBlockMockRecorder) GetDifficulty ¶
func (mr *MockBlockMockRecorder) GetDifficulty() *gomock.Call
GetDifficulty indicates an expected call of GetDifficulty.
func (*MockBlockMockRecorder) GetHashAlgorithm ¶
func (mr *MockBlockMockRecorder) GetHashAlgorithm() *gomock.Call
GetHashAlgorithm indicates an expected call of GetHashAlgorithm.
func (*MockBlockMockRecorder) GetHashableBytes ¶
func (mr *MockBlockMockRecorder) GetHashableBytes() *gomock.Call
GetHashableBytes indicates an expected call of GetHashableBytes.
func (*MockBlockMockRecorder) GetIndex ¶
func (mr *MockBlockMockRecorder) GetIndex() *gomock.Call
GetIndex indicates an expected call of GetIndex.
func (*MockBlockMockRecorder) GetMetadata ¶
func (mr *MockBlockMockRecorder) GetMetadata() *gomock.Call
GetMetadata indicates an expected call of GetMetadata.
func (*MockBlockMockRecorder) GetNonce ¶
func (mr *MockBlockMockRecorder) GetNonce() *gomock.Call
GetNonce indicates an expected call of GetNonce.
func (*MockBlockMockRecorder) GetPreviousHash ¶
func (mr *MockBlockMockRecorder) GetPreviousHash() *gomock.Call
GetPreviousHash indicates an expected call of GetPreviousHash.
func (*MockBlockMockRecorder) GetProof ¶
func (mr *MockBlockMockRecorder) GetProof() *gomock.Call
GetProof indicates an expected call of GetProof.
func (*MockBlockMockRecorder) GetProposer ¶
func (mr *MockBlockMockRecorder) GetProposer() *gomock.Call
GetProposer indicates an expected call of GetProposer.
func (*MockBlockMockRecorder) GetSize ¶
func (mr *MockBlockMockRecorder) GetSize() *gomock.Call
GetSize indicates an expected call of GetSize.
func (*MockBlockMockRecorder) GetTimestamp ¶
func (mr *MockBlockMockRecorder) GetTimestamp() *gomock.Call
GetTimestamp indicates an expected call of GetTimestamp.
func (*MockBlockMockRecorder) InvalidateCache ¶
func (mr *MockBlockMockRecorder) InvalidateCache() *gomock.Call
InvalidateCache indicates an expected call of InvalidateCache.
func (*MockBlockMockRecorder) Serialize ¶
func (mr *MockBlockMockRecorder) Serialize() *gomock.Call
Serialize indicates an expected call of Serialize.
func (*MockBlockMockRecorder) SetData ¶
func (mr *MockBlockMockRecorder) SetData(data any) *gomock.Call
SetData indicates an expected call of SetData.
func (*MockBlockMockRecorder) SetDifficulty ¶
func (mr *MockBlockMockRecorder) SetDifficulty(difficulty any) *gomock.Call
SetDifficulty indicates an expected call of SetDifficulty.
func (*MockBlockMockRecorder) SetMetadata ¶
func (mr *MockBlockMockRecorder) SetMetadata(metadata any) *gomock.Call
SetMetadata indicates an expected call of SetMetadata.
func (*MockBlockMockRecorder) SetNonce ¶
func (mr *MockBlockMockRecorder) SetNonce(nonce any) *gomock.Call
SetNonce indicates an expected call of SetNonce.
func (*MockBlockMockRecorder) SetProof ¶
func (mr *MockBlockMockRecorder) SetProof(proof any) *gomock.Call
SetProof indicates an expected call of SetProof.
func (*MockBlockMockRecorder) SetProposer ¶
func (mr *MockBlockMockRecorder) SetProposer(proposer any) *gomock.Call
SetProposer indicates an expected call of SetProposer.
func (*MockBlockMockRecorder) Validate ¶
func (mr *MockBlockMockRecorder) Validate() *gomock.Call
Validate indicates an expected call of Validate.
type MockConsensus ¶
type MockConsensus struct {
// contains filtered or unexported fields
}
MockConsensus is a mock of Consensus interface.
func NewMockConsensus ¶
func NewMockConsensus(ctrl *gomock.Controller) *MockConsensus
NewMockConsensus creates a new mock instance.
func (*MockConsensus) AdjustDifficulty ¶
func (m *MockConsensus) AdjustDifficulty(blocks []interfaces.Block) error
AdjustDifficulty mocks base method.
func (*MockConsensus) EXPECT ¶
func (m *MockConsensus) EXPECT() *MockConsensusMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConsensus) GetConsensusType ¶
func (m *MockConsensus) GetConsensusType() string
GetConsensusType mocks base method.
func (*MockConsensus) GetDifficulty ¶
func (m *MockConsensus) GetDifficulty() any
GetDifficulty mocks base method.
func (*MockConsensus) GetMetrics ¶
func (m *MockConsensus) GetMetrics() interfaces.ConsensusMetrics
GetMetrics mocks base method.
func (*MockConsensus) GetStatus ¶
func (m *MockConsensus) GetStatus() interfaces.ConsensusStatus
GetStatus mocks base method.
func (*MockConsensus) OnBlockAccepted ¶
func (m *MockConsensus) OnBlockAccepted(block interfaces.Block) error
OnBlockAccepted mocks base method.
func (*MockConsensus) OnBlockRejected ¶
func (m *MockConsensus) OnBlockRejected(block interfaces.Block, reason error) error
OnBlockRejected mocks base method.
func (*MockConsensus) ProposeBlock ¶
func (m *MockConsensus) ProposeBlock(data []byte) (interfaces.Block, error)
ProposeBlock mocks base method.
func (*MockConsensus) RegisterValidator ¶
func (m *MockConsensus) RegisterValidator(validator interfaces.Validator) error
RegisterValidator mocks base method.
func (*MockConsensus) RegisterWorker ¶
func (m *MockConsensus) RegisterWorker(worker interfaces.Worker) error
RegisterWorker mocks base method.
func (*MockConsensus) Start ¶
func (m *MockConsensus) Start(ctx context.Context) error
Start mocks base method.
func (*MockConsensus) ValidateBlock ¶
func (m *MockConsensus) ValidateBlock(block interfaces.Block) error
ValidateBlock mocks base method.
type MockConsensusMockRecorder ¶
type MockConsensusMockRecorder struct {
// contains filtered or unexported fields
}
MockConsensusMockRecorder is the mock recorder for MockConsensus.
func (*MockConsensusMockRecorder) AdjustDifficulty ¶
func (mr *MockConsensusMockRecorder) AdjustDifficulty(blocks any) *gomock.Call
AdjustDifficulty indicates an expected call of AdjustDifficulty.
func (*MockConsensusMockRecorder) GetConsensusType ¶
func (mr *MockConsensusMockRecorder) GetConsensusType() *gomock.Call
GetConsensusType indicates an expected call of GetConsensusType.
func (*MockConsensusMockRecorder) GetDifficulty ¶
func (mr *MockConsensusMockRecorder) GetDifficulty() *gomock.Call
GetDifficulty indicates an expected call of GetDifficulty.
func (*MockConsensusMockRecorder) GetMetrics ¶
func (mr *MockConsensusMockRecorder) GetMetrics() *gomock.Call
GetMetrics indicates an expected call of GetMetrics.
func (*MockConsensusMockRecorder) GetStatus ¶
func (mr *MockConsensusMockRecorder) GetStatus() *gomock.Call
GetStatus indicates an expected call of GetStatus.
func (*MockConsensusMockRecorder) OnBlockAccepted ¶
func (mr *MockConsensusMockRecorder) OnBlockAccepted(block any) *gomock.Call
OnBlockAccepted indicates an expected call of OnBlockAccepted.
func (*MockConsensusMockRecorder) OnBlockRejected ¶
func (mr *MockConsensusMockRecorder) OnBlockRejected(block, reason any) *gomock.Call
OnBlockRejected indicates an expected call of OnBlockRejected.
func (*MockConsensusMockRecorder) ProposeBlock ¶
func (mr *MockConsensusMockRecorder) ProposeBlock(data any) *gomock.Call
ProposeBlock indicates an expected call of ProposeBlock.
func (*MockConsensusMockRecorder) RegisterValidator ¶
func (mr *MockConsensusMockRecorder) RegisterValidator(validator any) *gomock.Call
RegisterValidator indicates an expected call of RegisterValidator.
func (*MockConsensusMockRecorder) RegisterWorker ¶
func (mr *MockConsensusMockRecorder) RegisterWorker(worker any) *gomock.Call
RegisterWorker indicates an expected call of RegisterWorker.
func (*MockConsensusMockRecorder) Start ¶
func (mr *MockConsensusMockRecorder) Start(ctx any) *gomock.Call
Start indicates an expected call of Start.
func (*MockConsensusMockRecorder) Stop ¶
func (mr *MockConsensusMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
func (*MockConsensusMockRecorder) ValidateBlock ¶
func (mr *MockConsensusMockRecorder) ValidateBlock(block any) *gomock.Call
ValidateBlock indicates an expected call of ValidateBlock.
type MockDifficultyCalculator ¶
type MockDifficultyCalculator struct {
// contains filtered or unexported fields
}
MockDifficultyCalculator is a mock of DifficultyCalculator interface.
func NewMockDifficultyCalculator ¶
func NewMockDifficultyCalculator(ctrl *gomock.Controller) *MockDifficultyCalculator
NewMockDifficultyCalculator creates a new mock instance.
func (*MockDifficultyCalculator) CalculateNextDifficulty ¶
func (m *MockDifficultyCalculator) CalculateNextDifficulty(currentDifficulty uint64, blocks []interfaces.Block) (uint64, error)
CalculateNextDifficulty mocks base method.
func (*MockDifficultyCalculator) EXPECT ¶
func (m *MockDifficultyCalculator) EXPECT() *MockDifficultyCalculatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDifficultyCalculator) EstimateNextDifficulty ¶
func (m *MockDifficultyCalculator) EstimateNextDifficulty(currentDifficulty uint64, blocks []interfaces.Block) uint64
EstimateNextDifficulty mocks base method.
func (*MockDifficultyCalculator) GetAlgorithmName ¶
func (m *MockDifficultyCalculator) GetAlgorithmName() string
GetAlgorithmName mocks base method.
func (*MockDifficultyCalculator) GetMaxDifficulty ¶
func (m *MockDifficultyCalculator) GetMaxDifficulty() uint64
GetMaxDifficulty mocks base method.
func (*MockDifficultyCalculator) GetMinDifficulty ¶
func (m *MockDifficultyCalculator) GetMinDifficulty() uint64
GetMinDifficulty mocks base method.
func (*MockDifficultyCalculator) GetTargetBlockTime ¶
func (m *MockDifficultyCalculator) GetTargetBlockTime() time.Duration
GetTargetBlockTime mocks base method.
func (*MockDifficultyCalculator) ValidateDifficulty ¶
func (m *MockDifficultyCalculator) ValidateDifficulty(difficulty uint64) error
ValidateDifficulty mocks base method.
type MockDifficultyCalculatorMockRecorder ¶
type MockDifficultyCalculatorMockRecorder struct {
// contains filtered or unexported fields
}
MockDifficultyCalculatorMockRecorder is the mock recorder for MockDifficultyCalculator.
func (*MockDifficultyCalculatorMockRecorder) CalculateNextDifficulty ¶
func (mr *MockDifficultyCalculatorMockRecorder) CalculateNextDifficulty(currentDifficulty, blocks any) *gomock.Call
CalculateNextDifficulty indicates an expected call of CalculateNextDifficulty.
func (*MockDifficultyCalculatorMockRecorder) EstimateNextDifficulty ¶
func (mr *MockDifficultyCalculatorMockRecorder) EstimateNextDifficulty(currentDifficulty, blocks any) *gomock.Call
EstimateNextDifficulty indicates an expected call of EstimateNextDifficulty.
func (*MockDifficultyCalculatorMockRecorder) GetAlgorithmName ¶
func (mr *MockDifficultyCalculatorMockRecorder) GetAlgorithmName() *gomock.Call
GetAlgorithmName indicates an expected call of GetAlgorithmName.
func (*MockDifficultyCalculatorMockRecorder) GetMaxDifficulty ¶
func (mr *MockDifficultyCalculatorMockRecorder) GetMaxDifficulty() *gomock.Call
GetMaxDifficulty indicates an expected call of GetMaxDifficulty.
func (*MockDifficultyCalculatorMockRecorder) GetMinDifficulty ¶
func (mr *MockDifficultyCalculatorMockRecorder) GetMinDifficulty() *gomock.Call
GetMinDifficulty indicates an expected call of GetMinDifficulty.
func (*MockDifficultyCalculatorMockRecorder) GetTargetBlockTime ¶
func (mr *MockDifficultyCalculatorMockRecorder) GetTargetBlockTime() *gomock.Call
GetTargetBlockTime indicates an expected call of GetTargetBlockTime.
func (*MockDifficultyCalculatorMockRecorder) ValidateDifficulty ¶
func (mr *MockDifficultyCalculatorMockRecorder) ValidateDifficulty(difficulty any) *gomock.Call
ValidateDifficulty indicates an expected call of ValidateDifficulty.
type MockErrorReporter ¶
type MockErrorReporter struct {
// contains filtered or unexported fields
}
MockErrorReporter is a mock of ErrorReporter interface.
func NewMockErrorReporter ¶
func NewMockErrorReporter(ctrl *gomock.Controller) *MockErrorReporter
NewMockErrorReporter creates a new mock instance.
func (*MockErrorReporter) EXPECT ¶
func (m *MockErrorReporter) EXPECT() *MockErrorReporterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockErrorReporter) GetErrorCount ¶
func (m *MockErrorReporter) GetErrorCount() int
GetErrorCount mocks base method.
func (*MockErrorReporter) GetErrors ¶
func (m *MockErrorReporter) GetErrors() []error
GetErrors mocks base method.
func (*MockErrorReporter) ReportError ¶
func (m *MockErrorReporter) ReportError(err error)
ReportError mocks base method.
func (*MockErrorReporter) ReportErrorWithContext ¶
func (m *MockErrorReporter) ReportErrorWithContext(err error, arg1 map[string]any)
ReportErrorWithContext mocks base method.
type MockErrorReporterMockRecorder ¶
type MockErrorReporterMockRecorder struct {
// contains filtered or unexported fields
}
MockErrorReporterMockRecorder is the mock recorder for MockErrorReporter.
func (*MockErrorReporterMockRecorder) Clear ¶
func (mr *MockErrorReporterMockRecorder) Clear() *gomock.Call
Clear indicates an expected call of Clear.
func (*MockErrorReporterMockRecorder) GetErrorCount ¶
func (mr *MockErrorReporterMockRecorder) GetErrorCount() *gomock.Call
GetErrorCount indicates an expected call of GetErrorCount.
func (*MockErrorReporterMockRecorder) GetErrors ¶
func (mr *MockErrorReporterMockRecorder) GetErrors() *gomock.Call
GetErrors indicates an expected call of GetErrors.
func (*MockErrorReporterMockRecorder) ReportError ¶
func (mr *MockErrorReporterMockRecorder) ReportError(err any) *gomock.Call
ReportError indicates an expected call of ReportError.
func (*MockErrorReporterMockRecorder) ReportErrorWithContext ¶
func (mr *MockErrorReporterMockRecorder) ReportErrorWithContext(err, arg1 any) *gomock.Call
ReportErrorWithContext indicates an expected call of ReportErrorWithContext.
type MockExtension ¶
type MockExtension struct {
// contains filtered or unexported fields
}
MockExtension is a mock of Extension interface.
func NewMockExtension ¶
func NewMockExtension(ctrl *gomock.Controller) *MockExtension
NewMockExtension creates a new mock instance.
func (*MockExtension) EXPECT ¶
func (m *MockExtension) EXPECT() *MockExtensionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExtension) Execute ¶
func (m *MockExtension) Execute(ctx context.Context, input interfaces.ExtensionInput) (interfaces.ExtensionOutput, error)
Execute mocks base method.
func (*MockExtension) GetMetadata ¶
func (m *MockExtension) GetMetadata() interfaces.ExtensionMetadata
GetMetadata mocks base method.
func (*MockExtension) GetType ¶
func (m *MockExtension) GetType() interfaces.ExtensionType
GetType mocks base method.
func (*MockExtension) Validate ¶
func (m *MockExtension) Validate(input interfaces.ExtensionInput) error
Validate mocks base method.
type MockExtensionMockRecorder ¶
type MockExtensionMockRecorder struct {
// contains filtered or unexported fields
}
MockExtensionMockRecorder is the mock recorder for MockExtension.
func (*MockExtensionMockRecorder) Execute ¶
func (mr *MockExtensionMockRecorder) Execute(ctx, input any) *gomock.Call
Execute indicates an expected call of Execute.
func (*MockExtensionMockRecorder) GetMetadata ¶
func (mr *MockExtensionMockRecorder) GetMetadata() *gomock.Call
GetMetadata indicates an expected call of GetMetadata.
func (*MockExtensionMockRecorder) GetName ¶
func (mr *MockExtensionMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName.
func (*MockExtensionMockRecorder) GetType ¶
func (mr *MockExtensionMockRecorder) GetType() *gomock.Call
GetType indicates an expected call of GetType.
type MockHashable ¶
type MockHashable struct {
// contains filtered or unexported fields
}
MockHashable is a mock of Hashable interface.
func NewMockHashable ¶
func NewMockHashable(ctrl *gomock.Controller) *MockHashable
NewMockHashable creates a new mock instance.
func (*MockHashable) ComputeHash ¶
func (m *MockHashable) ComputeHash() ([]byte, error)
ComputeHash mocks base method.
func (*MockHashable) EXPECT ¶
func (m *MockHashable) EXPECT() *MockHashableMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHashable) GetCachedHash ¶
func (m *MockHashable) GetCachedHash() []byte
GetCachedHash mocks base method.
func (*MockHashable) GetHashAlgorithm ¶
func (m *MockHashable) GetHashAlgorithm() string
GetHashAlgorithm mocks base method.
func (*MockHashable) GetHashableBytes ¶
func (m *MockHashable) GetHashableBytes() ([]byte, error)
GetHashableBytes mocks base method.
func (*MockHashable) InvalidateCache ¶
func (m *MockHashable) InvalidateCache()
InvalidateCache mocks base method.
type MockHashableMockRecorder ¶
type MockHashableMockRecorder struct {
// contains filtered or unexported fields
}
MockHashableMockRecorder is the mock recorder for MockHashable.
func (*MockHashableMockRecorder) ComputeHash ¶
func (mr *MockHashableMockRecorder) ComputeHash() *gomock.Call
ComputeHash indicates an expected call of ComputeHash.
func (*MockHashableMockRecorder) GetCachedHash ¶
func (mr *MockHashableMockRecorder) GetCachedHash() *gomock.Call
GetCachedHash indicates an expected call of GetCachedHash.
func (*MockHashableMockRecorder) GetHashAlgorithm ¶
func (mr *MockHashableMockRecorder) GetHashAlgorithm() *gomock.Call
GetHashAlgorithm indicates an expected call of GetHashAlgorithm.
func (*MockHashableMockRecorder) GetHashableBytes ¶
func (mr *MockHashableMockRecorder) GetHashableBytes() *gomock.Call
GetHashableBytes indicates an expected call of GetHashableBytes.
func (*MockHashableMockRecorder) InvalidateCache ¶
func (mr *MockHashableMockRecorder) InvalidateCache() *gomock.Call
InvalidateCache indicates an expected call of InvalidateCache.
type MockHasher ¶
type MockHasher struct {
// contains filtered or unexported fields
}
MockHasher is a mock of Hasher interface.
func NewMockHasher ¶
func NewMockHasher(ctrl *gomock.Controller) *MockHasher
NewMockHasher creates a new mock instance.
func (*MockHasher) EXPECT ¶
func (m *MockHasher) EXPECT() *MockHasherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHasher) GetAlgorithm ¶
func (m *MockHasher) GetAlgorithm() string
GetAlgorithm mocks base method.
func (*MockHasher) GetHashSize ¶
func (m *MockHasher) GetHashSize() int
GetHashSize mocks base method.
func (*MockHasher) Hash ¶
func (m *MockHasher) Hash(data []byte) ([]byte, error)
Hash mocks base method.
func (*MockHasher) HashMultiple ¶
func (m *MockHasher) HashMultiple(data ...[]byte) ([]byte, error)
HashMultiple mocks base method.
type MockHasherMockRecorder ¶
type MockHasherMockRecorder struct {
// contains filtered or unexported fields
}
MockHasherMockRecorder is the mock recorder for MockHasher.
func (*MockHasherMockRecorder) Clone ¶
func (mr *MockHasherMockRecorder) Clone() *gomock.Call
Clone indicates an expected call of Clone.
func (*MockHasherMockRecorder) GetAlgorithm ¶
func (mr *MockHasherMockRecorder) GetAlgorithm() *gomock.Call
GetAlgorithm indicates an expected call of GetAlgorithm.
func (*MockHasherMockRecorder) GetHashSize ¶
func (mr *MockHasherMockRecorder) GetHashSize() *gomock.Call
GetHashSize indicates an expected call of GetHashSize.
func (*MockHasherMockRecorder) Hash ¶
func (mr *MockHasherMockRecorder) Hash(data any) *gomock.Call
Hash indicates an expected call of Hash.
func (*MockHasherMockRecorder) HashMultiple ¶
func (mr *MockHasherMockRecorder) HashMultiple(data ...any) *gomock.Call
HashMultiple indicates an expected call of HashMultiple.
func (*MockHasherMockRecorder) IsSecure ¶
func (mr *MockHasherMockRecorder) IsSecure() *gomock.Call
IsSecure indicates an expected call of IsSecure.
func (*MockHasherMockRecorder) Reset ¶
func (mr *MockHasherMockRecorder) Reset() *gomock.Call
Reset indicates an expected call of Reset.
type MockHook ¶
type MockHook struct {
// contains filtered or unexported fields
}
MockHook is a mock of Hook interface.
func NewMockHook ¶
func NewMockHook(ctrl *gomock.Controller) *MockHook
NewMockHook creates a new mock instance.
func (*MockHook) ContinueOnError ¶
ContinueOnError mocks base method.
func (*MockHook) EXPECT ¶
func (m *MockHook) EXPECT() *MockHookMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHook) SetEnabled ¶
SetEnabled mocks base method.
type MockHookMockRecorder ¶
type MockHookMockRecorder struct {
// contains filtered or unexported fields
}
MockHookMockRecorder is the mock recorder for MockHook.
func (*MockHookMockRecorder) ContinueOnError ¶
func (mr *MockHookMockRecorder) ContinueOnError() *gomock.Call
ContinueOnError indicates an expected call of ContinueOnError.
func (*MockHookMockRecorder) Execute ¶
func (mr *MockHookMockRecorder) Execute(ctx, data any) *gomock.Call
Execute indicates an expected call of Execute.
func (*MockHookMockRecorder) GetName ¶
func (mr *MockHookMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName.
func (*MockHookMockRecorder) GetPriority ¶
func (mr *MockHookMockRecorder) GetPriority() *gomock.Call
GetPriority indicates an expected call of GetPriority.
func (*MockHookMockRecorder) IsEnabled ¶
func (mr *MockHookMockRecorder) IsEnabled() *gomock.Call
IsEnabled indicates an expected call of IsEnabled.
func (*MockHookMockRecorder) SetEnabled ¶
func (mr *MockHookMockRecorder) SetEnabled(enabled any) *gomock.Call
SetEnabled indicates an expected call of SetEnabled.
type MockIterator ¶
type MockIterator struct {
// contains filtered or unexported fields
}
MockIterator is a mock of Iterator interface.
func NewMockIterator ¶
func NewMockIterator(ctrl *gomock.Controller) *MockIterator
NewMockIterator creates a new mock instance.
func (*MockIterator) EXPECT ¶
func (m *MockIterator) EXPECT() *MockIteratorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockIteratorMockRecorder ¶
type MockIteratorMockRecorder struct {
// contains filtered or unexported fields
}
MockIteratorMockRecorder is the mock recorder for MockIterator.
func (*MockIteratorMockRecorder) Error ¶
func (mr *MockIteratorMockRecorder) Error() *gomock.Call
Error indicates an expected call of Error.
func (*MockIteratorMockRecorder) Key ¶
func (mr *MockIteratorMockRecorder) Key() *gomock.Call
Key indicates an expected call of Key.
func (*MockIteratorMockRecorder) Next ¶
func (mr *MockIteratorMockRecorder) Next() *gomock.Call
Next indicates an expected call of Next.
func (*MockIteratorMockRecorder) Release ¶
func (mr *MockIteratorMockRecorder) Release() *gomock.Call
Release indicates an expected call of Release.
func (*MockIteratorMockRecorder) Seek ¶
func (mr *MockIteratorMockRecorder) Seek(key any) *gomock.Call
Seek indicates an expected call of Seek.
func (*MockIteratorMockRecorder) Value ¶
func (mr *MockIteratorMockRecorder) Value() *gomock.Call
Value indicates an expected call of Value.
type MockLogger ¶
type MockLogger struct {
// contains filtered or unexported fields
}
MockLogger is a mock of Logger interface.
func NewMockLogger ¶
func NewMockLogger(ctrl *gomock.Controller) *MockLogger
NewMockLogger creates a new mock instance.
func (*MockLogger) Debug ¶
func (m *MockLogger) Debug(msg string, args ...any)
Debug mocks base method.
func (*MockLogger) EXPECT ¶
func (m *MockLogger) EXPECT() *MockLoggerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLogger) Error ¶
func (m *MockLogger) Error(msg string, args ...any)
Error mocks base method.
func (*MockLogger) Fatal ¶
func (m *MockLogger) Fatal(msg string, args ...any)
Fatal mocks base method.
func (*MockLogger) Info ¶
func (m *MockLogger) Info(msg string, args ...any)
Info mocks base method.
func (*MockLogger) Warn ¶
func (m *MockLogger) Warn(msg string, args ...any)
Warn mocks base method.
func (*MockLogger) WithField ¶
func (m *MockLogger) WithField(key string, value any) interfaces.Logger
WithField mocks base method.
func (*MockLogger) WithFields ¶
func (m *MockLogger) WithFields(fields map[string]any) interfaces.Logger
WithFields mocks base method.
type MockLoggerMockRecorder ¶
type MockLoggerMockRecorder struct {
// contains filtered or unexported fields
}
MockLoggerMockRecorder is the mock recorder for MockLogger.
func (*MockLoggerMockRecorder) Debug ¶
func (mr *MockLoggerMockRecorder) Debug(msg any, args ...any) *gomock.Call
Debug indicates an expected call of Debug.
func (*MockLoggerMockRecorder) Error ¶
func (mr *MockLoggerMockRecorder) Error(msg any, args ...any) *gomock.Call
Error indicates an expected call of Error.
func (*MockLoggerMockRecorder) Fatal ¶
func (mr *MockLoggerMockRecorder) Fatal(msg any, args ...any) *gomock.Call
Fatal indicates an expected call of Fatal.
func (*MockLoggerMockRecorder) Info ¶
func (mr *MockLoggerMockRecorder) Info(msg any, args ...any) *gomock.Call
Info indicates an expected call of Info.
func (*MockLoggerMockRecorder) Warn ¶
func (mr *MockLoggerMockRecorder) Warn(msg any, args ...any) *gomock.Call
Warn indicates an expected call of Warn.
func (*MockLoggerMockRecorder) WithField ¶
func (mr *MockLoggerMockRecorder) WithField(key, value any) *gomock.Call
WithField indicates an expected call of WithField.
func (*MockLoggerMockRecorder) WithFields ¶
func (mr *MockLoggerMockRecorder) WithFields(fields any) *gomock.Call
WithFields indicates an expected call of WithFields.
type MockPlugin ¶
type MockPlugin struct {
// contains filtered or unexported fields
}
MockPlugin is a mock of Plugin interface.
func NewMockPlugin ¶
func NewMockPlugin(ctrl *gomock.Controller) *MockPlugin
NewMockPlugin creates a new mock instance.
func (*MockPlugin) EXPECT ¶
func (m *MockPlugin) EXPECT() *MockPluginMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPlugin) GetCapabilities ¶
func (m *MockPlugin) GetCapabilities() []interfaces.Capability
GetCapabilities mocks base method.
func (*MockPlugin) GetDependencies ¶
func (m *MockPlugin) GetDependencies() []string
GetDependencies mocks base method.
func (*MockPlugin) GetStatus ¶
func (m *MockPlugin) GetStatus() interfaces.PluginStatus
GetStatus mocks base method.
func (*MockPlugin) GetVersion ¶
func (m *MockPlugin) GetVersion() string
GetVersion mocks base method.
func (*MockPlugin) Initialize ¶
Initialize mocks base method.
type MockPluginMockRecorder ¶
type MockPluginMockRecorder struct {
// contains filtered or unexported fields
}
MockPluginMockRecorder is the mock recorder for MockPlugin.
func (*MockPluginMockRecorder) GetCapabilities ¶
func (mr *MockPluginMockRecorder) GetCapabilities() *gomock.Call
GetCapabilities indicates an expected call of GetCapabilities.
func (*MockPluginMockRecorder) GetDependencies ¶
func (mr *MockPluginMockRecorder) GetDependencies() *gomock.Call
GetDependencies indicates an expected call of GetDependencies.
func (*MockPluginMockRecorder) GetName ¶
func (mr *MockPluginMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName.
func (*MockPluginMockRecorder) GetStatus ¶
func (mr *MockPluginMockRecorder) GetStatus() *gomock.Call
GetStatus indicates an expected call of GetStatus.
func (*MockPluginMockRecorder) GetVersion ¶
func (mr *MockPluginMockRecorder) GetVersion() *gomock.Call
GetVersion indicates an expected call of GetVersion.
func (*MockPluginMockRecorder) Initialize ¶
func (mr *MockPluginMockRecorder) Initialize(ctx, config any) *gomock.Call
Initialize indicates an expected call of Initialize.
func (*MockPluginMockRecorder) Start ¶
func (mr *MockPluginMockRecorder) Start(ctx any) *gomock.Call
Start indicates an expected call of Start.
func (*MockPluginMockRecorder) Stop ¶
func (mr *MockPluginMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
type MockStateTransition ¶
type MockStateTransition struct {
// contains filtered or unexported fields
}
MockStateTransition is a mock of StateTransition interface.
func NewMockStateTransition ¶
func NewMockStateTransition(ctrl *gomock.Controller) *MockStateTransition
NewMockStateTransition creates a new mock instance.
func (*MockStateTransition) AddChange ¶
func (m *MockStateTransition) AddChange(key string, oldValue, newValue any)
AddChange mocks base method.
func (*MockStateTransition) Apply ¶
func (m *MockStateTransition) Apply() error
Apply mocks base method.
func (*MockStateTransition) EXPECT ¶
func (m *MockStateTransition) EXPECT() *MockStateTransitionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStateTransition) GetChanges ¶
func (m *MockStateTransition) GetChanges() map[string]interfaces.StateChange
GetChanges mocks base method.
func (*MockStateTransition) Rollback ¶
func (m *MockStateTransition) Rollback() error
Rollback mocks base method.
func (*MockStateTransition) Validate ¶
func (m *MockStateTransition) Validate() error
Validate mocks base method.
type MockStateTransitionMockRecorder ¶
type MockStateTransitionMockRecorder struct {
// contains filtered or unexported fields
}
MockStateTransitionMockRecorder is the mock recorder for MockStateTransition.
func (*MockStateTransitionMockRecorder) AddChange ¶
func (mr *MockStateTransitionMockRecorder) AddChange(key, oldValue, newValue any) *gomock.Call
AddChange indicates an expected call of AddChange.
func (*MockStateTransitionMockRecorder) Apply ¶
func (mr *MockStateTransitionMockRecorder) Apply() *gomock.Call
Apply indicates an expected call of Apply.
func (*MockStateTransitionMockRecorder) GetChanges ¶
func (mr *MockStateTransitionMockRecorder) GetChanges() *gomock.Call
GetChanges indicates an expected call of GetChanges.
func (*MockStateTransitionMockRecorder) Rollback ¶
func (mr *MockStateTransitionMockRecorder) Rollback() *gomock.Call
Rollback indicates an expected call of Rollback.
func (*MockStateTransitionMockRecorder) Validate ¶
func (mr *MockStateTransitionMockRecorder) Validate() *gomock.Call
Validate indicates an expected call of Validate.
type MockStorage ¶
type MockStorage struct {
// contains filtered or unexported fields
}
MockStorage is a mock of Storage interface.
func NewMockStorage ¶
func NewMockStorage(ctrl *gomock.Controller) *MockStorage
NewMockStorage creates a new mock instance.
func (*MockStorage) BatchDelete ¶
func (m *MockStorage) BatchDelete(keys [][]byte) error
BatchDelete mocks base method.
func (*MockStorage) BatchGet ¶
func (m *MockStorage) BatchGet(keys [][]byte) (map[string][]byte, error)
BatchGet mocks base method.
func (*MockStorage) BatchPut ¶
func (m *MockStorage) BatchPut(items map[string][]byte) error
BatchPut mocks base method.
func (*MockStorage) BeginTransaction ¶
func (m *MockStorage) BeginTransaction() interfaces.Transaction
BeginTransaction mocks base method.
func (*MockStorage) Delete ¶
func (m *MockStorage) Delete(key []byte) error
Delete mocks base method.
func (*MockStorage) EXPECT ¶
func (m *MockStorage) EXPECT() *MockStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStorage) Get ¶
func (m *MockStorage) Get(key []byte) ([]byte, error)
Get mocks base method.
func (*MockStorage) GetStats ¶
func (m *MockStorage) GetStats() interfaces.StorageStats
GetStats mocks base method.
func (*MockStorage) Has ¶
func (m *MockStorage) Has(key []byte) (bool, error)
Has mocks base method.
func (*MockStorage) NewIterator ¶
func (m *MockStorage) NewIterator(prefix []byte) interfaces.Iterator
NewIterator mocks base method.
type MockStorageMockRecorder ¶
type MockStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockStorageMockRecorder is the mock recorder for MockStorage.
func (*MockStorageMockRecorder) BatchDelete ¶
func (mr *MockStorageMockRecorder) BatchDelete(keys any) *gomock.Call
BatchDelete indicates an expected call of BatchDelete.
func (*MockStorageMockRecorder) BatchGet ¶
func (mr *MockStorageMockRecorder) BatchGet(keys any) *gomock.Call
BatchGet indicates an expected call of BatchGet.
func (*MockStorageMockRecorder) BatchPut ¶
func (mr *MockStorageMockRecorder) BatchPut(items any) *gomock.Call
BatchPut indicates an expected call of BatchPut.
func (*MockStorageMockRecorder) BeginTransaction ¶
func (mr *MockStorageMockRecorder) BeginTransaction() *gomock.Call
BeginTransaction indicates an expected call of BeginTransaction.
func (*MockStorageMockRecorder) Close ¶
func (mr *MockStorageMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockStorageMockRecorder) Compact ¶
func (mr *MockStorageMockRecorder) Compact() *gomock.Call
Compact indicates an expected call of Compact.
func (*MockStorageMockRecorder) Delete ¶
func (mr *MockStorageMockRecorder) Delete(key any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockStorageMockRecorder) Get ¶
func (mr *MockStorageMockRecorder) Get(key any) *gomock.Call
Get indicates an expected call of Get.
func (*MockStorageMockRecorder) GetStats ¶
func (mr *MockStorageMockRecorder) GetStats() *gomock.Call
GetStats indicates an expected call of GetStats.
func (*MockStorageMockRecorder) Has ¶
func (mr *MockStorageMockRecorder) Has(key any) *gomock.Call
Has indicates an expected call of Has.
func (*MockStorageMockRecorder) NewIterator ¶
func (mr *MockStorageMockRecorder) NewIterator(prefix any) *gomock.Call
NewIterator indicates an expected call of NewIterator.
type MockTransaction ¶
type MockTransaction struct {
// contains filtered or unexported fields
}
MockTransaction is a mock of Transaction interface.
func NewMockTransaction ¶
func NewMockTransaction(ctrl *gomock.Controller) *MockTransaction
NewMockTransaction creates a new mock instance.
func (*MockTransaction) Delete ¶
func (m *MockTransaction) Delete(key []byte) error
Delete mocks base method.
func (*MockTransaction) EXPECT ¶
func (m *MockTransaction) EXPECT() *MockTransactionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTransaction) Get ¶
func (m *MockTransaction) Get(key []byte) ([]byte, error)
Get mocks base method.
func (*MockTransaction) Put ¶
func (m *MockTransaction) Put(key, value []byte) error
Put mocks base method.
func (*MockTransaction) Rollback ¶
func (m *MockTransaction) Rollback() error
Rollback mocks base method.
type MockTransactionMockRecorder ¶
type MockTransactionMockRecorder struct {
// contains filtered or unexported fields
}
MockTransactionMockRecorder is the mock recorder for MockTransaction.
func (*MockTransactionMockRecorder) Commit ¶
func (mr *MockTransactionMockRecorder) Commit() *gomock.Call
Commit indicates an expected call of Commit.
func (*MockTransactionMockRecorder) Delete ¶
func (mr *MockTransactionMockRecorder) Delete(key any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockTransactionMockRecorder) Discard ¶
func (mr *MockTransactionMockRecorder) Discard() *gomock.Call
Discard indicates an expected call of Discard.
func (*MockTransactionMockRecorder) Get ¶
func (mr *MockTransactionMockRecorder) Get(key any) *gomock.Call
Get indicates an expected call of Get.
func (*MockTransactionMockRecorder) Put ¶
func (mr *MockTransactionMockRecorder) Put(key, value any) *gomock.Call
Put indicates an expected call of Put.
func (*MockTransactionMockRecorder) Rollback ¶
func (mr *MockTransactionMockRecorder) Rollback() *gomock.Call
Rollback indicates an expected call of Rollback.
type MockValidationPipeline ¶
type MockValidationPipeline struct {
// contains filtered or unexported fields
}
MockValidationPipeline is a mock of ValidationPipeline interface.
func NewMockValidationPipeline ¶
func NewMockValidationPipeline(ctrl *gomock.Controller) *MockValidationPipeline
NewMockValidationPipeline creates a new mock instance.
func (*MockValidationPipeline) AddValidator ¶
func (m *MockValidationPipeline) AddValidator(validator interfaces.Validator) error
AddValidator mocks base method.
func (*MockValidationPipeline) EXPECT ¶
func (m *MockValidationPipeline) EXPECT() *MockValidationPipelineMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockValidationPipeline) Execute ¶
func (m *MockValidationPipeline) Execute(ctx context.Context, block interfaces.Block) interfaces.ValidationResult
Execute mocks base method.
func (*MockValidationPipeline) ExecuteParallel ¶
func (m *MockValidationPipeline) ExecuteParallel(ctx context.Context, block interfaces.Block) interfaces.ValidationResult
ExecuteParallel mocks base method.
func (*MockValidationPipeline) GetMetrics ¶
func (m *MockValidationPipeline) GetMetrics() interfaces.ValidatorMetrics
GetMetrics mocks base method.
func (*MockValidationPipeline) GetValidators ¶
func (m *MockValidationPipeline) GetValidators() []interfaces.Validator
GetValidators mocks base method.
func (*MockValidationPipeline) RemoveValidator ¶
func (m *MockValidationPipeline) RemoveValidator(name string) error
RemoveValidator mocks base method.
func (*MockValidationPipeline) SetStopOnFirstError ¶
func (m *MockValidationPipeline) SetStopOnFirstError(stop bool)
SetStopOnFirstError mocks base method.
type MockValidationPipelineMockRecorder ¶
type MockValidationPipelineMockRecorder struct {
// contains filtered or unexported fields
}
MockValidationPipelineMockRecorder is the mock recorder for MockValidationPipeline.
func (*MockValidationPipelineMockRecorder) AddValidator ¶
func (mr *MockValidationPipelineMockRecorder) AddValidator(validator any) *gomock.Call
AddValidator indicates an expected call of AddValidator.
func (*MockValidationPipelineMockRecorder) Execute ¶
func (mr *MockValidationPipelineMockRecorder) Execute(ctx, block any) *gomock.Call
Execute indicates an expected call of Execute.
func (*MockValidationPipelineMockRecorder) ExecuteParallel ¶
func (mr *MockValidationPipelineMockRecorder) ExecuteParallel(ctx, block any) *gomock.Call
ExecuteParallel indicates an expected call of ExecuteParallel.
func (*MockValidationPipelineMockRecorder) GetMetrics ¶
func (mr *MockValidationPipelineMockRecorder) GetMetrics() *gomock.Call
GetMetrics indicates an expected call of GetMetrics.
func (*MockValidationPipelineMockRecorder) GetValidators ¶
func (mr *MockValidationPipelineMockRecorder) GetValidators() *gomock.Call
GetValidators indicates an expected call of GetValidators.
func (*MockValidationPipelineMockRecorder) RemoveValidator ¶
func (mr *MockValidationPipelineMockRecorder) RemoveValidator(name any) *gomock.Call
RemoveValidator indicates an expected call of RemoveValidator.
func (*MockValidationPipelineMockRecorder) SetStopOnFirstError ¶
func (mr *MockValidationPipelineMockRecorder) SetStopOnFirstError(stop any) *gomock.Call
SetStopOnFirstError indicates an expected call of SetStopOnFirstError.
type MockValidator ¶
type MockValidator struct {
// contains filtered or unexported fields
}
MockValidator is a mock of Validator interface.
func NewMockValidator ¶
func NewMockValidator(ctrl *gomock.Controller) *MockValidator
NewMockValidator creates a new mock instance.
func (*MockValidator) EXPECT ¶
func (m *MockValidator) EXPECT() *MockValidatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockValidator) GetMetrics ¶
func (m *MockValidator) GetMetrics() interfaces.ValidatorMetrics
GetMetrics mocks base method.
func (*MockValidator) GetPriority ¶
func (m *MockValidator) GetPriority() int
GetPriority mocks base method.
func (*MockValidator) GetValidationRules ¶
func (m *MockValidator) GetValidationRules() []interfaces.ValidationRule
GetValidationRules mocks base method.
func (*MockValidator) IsEnabled ¶
func (m *MockValidator) IsEnabled() bool
IsEnabled mocks base method.
func (*MockValidator) SetEnabled ¶
func (m *MockValidator) SetEnabled(enabled bool)
SetEnabled mocks base method.
func (*MockValidator) Validate ¶
func (m *MockValidator) Validate(ctx context.Context, block interfaces.Block) interfaces.ValidationResult
Validate mocks base method.
func (*MockValidator) ValidateChain ¶
func (m *MockValidator) ValidateChain(ctx context.Context, blocks []interfaces.Block) interfaces.ValidationResult
ValidateChain mocks base method.
type MockValidatorMockRecorder ¶
type MockValidatorMockRecorder struct {
// contains filtered or unexported fields
}
MockValidatorMockRecorder is the mock recorder for MockValidator.
func (*MockValidatorMockRecorder) GetMetrics ¶
func (mr *MockValidatorMockRecorder) GetMetrics() *gomock.Call
GetMetrics indicates an expected call of GetMetrics.
func (*MockValidatorMockRecorder) GetName ¶
func (mr *MockValidatorMockRecorder) GetName() *gomock.Call
GetName indicates an expected call of GetName.
func (*MockValidatorMockRecorder) GetPriority ¶
func (mr *MockValidatorMockRecorder) GetPriority() *gomock.Call
GetPriority indicates an expected call of GetPriority.
func (*MockValidatorMockRecorder) GetValidationRules ¶
func (mr *MockValidatorMockRecorder) GetValidationRules() *gomock.Call
GetValidationRules indicates an expected call of GetValidationRules.
func (*MockValidatorMockRecorder) IsEnabled ¶
func (mr *MockValidatorMockRecorder) IsEnabled() *gomock.Call
IsEnabled indicates an expected call of IsEnabled.
func (*MockValidatorMockRecorder) SetEnabled ¶
func (mr *MockValidatorMockRecorder) SetEnabled(enabled any) *gomock.Call
SetEnabled indicates an expected call of SetEnabled.
func (*MockValidatorMockRecorder) Validate ¶
func (mr *MockValidatorMockRecorder) Validate(ctx, block any) *gomock.Call
Validate indicates an expected call of Validate.
func (*MockValidatorMockRecorder) ValidateChain ¶
func (mr *MockValidatorMockRecorder) ValidateChain(ctx, blocks any) *gomock.Call
ValidateChain indicates an expected call of ValidateChain.
type MockWorkPackage ¶
type MockWorkPackage struct {
// contains filtered or unexported fields
}
MockWorkPackage is a mock of WorkPackage interface.
func NewMockWorkPackage ¶
func NewMockWorkPackage(ctrl *gomock.Controller) *MockWorkPackage
NewMockWorkPackage creates a new mock instance.
func (*MockWorkPackage) EXPECT ¶
func (m *MockWorkPackage) EXPECT() *MockWorkPackageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWorkPackage) GetBlockTemplate ¶
func (m *MockWorkPackage) GetBlockTemplate() interfaces.Block
GetBlockTemplate mocks base method.
func (*MockWorkPackage) GetCreatedAt ¶
func (m *MockWorkPackage) GetCreatedAt() time.Time
GetCreatedAt mocks base method.
func (*MockWorkPackage) GetDifficulty ¶
func (m *MockWorkPackage) GetDifficulty() uint64
GetDifficulty mocks base method.
func (*MockWorkPackage) GetJobID ¶
func (m *MockWorkPackage) GetJobID() string
GetJobID mocks base method.
func (*MockWorkPackage) GetParameters ¶
func (m *MockWorkPackage) GetParameters() map[string]any
GetParameters mocks base method.
func (*MockWorkPackage) GetTarget ¶
func (m *MockWorkPackage) GetTarget() []byte
GetTarget mocks base method.
func (*MockWorkPackage) GetTimeout ¶
func (m *MockWorkPackage) GetTimeout() time.Duration
GetTimeout mocks base method.
func (*MockWorkPackage) IsStale ¶
func (m *MockWorkPackage) IsStale() bool
IsStale mocks base method.
func (*MockWorkPackage) SetParameters ¶
func (m *MockWorkPackage) SetParameters(params map[string]any)
SetParameters mocks base method.
func (*MockWorkPackage) Validate ¶
func (m *MockWorkPackage) Validate() error
Validate mocks base method.
type MockWorkPackageMockRecorder ¶
type MockWorkPackageMockRecorder struct {
// contains filtered or unexported fields
}
MockWorkPackageMockRecorder is the mock recorder for MockWorkPackage.
func (*MockWorkPackageMockRecorder) GetBlockTemplate ¶
func (mr *MockWorkPackageMockRecorder) GetBlockTemplate() *gomock.Call
GetBlockTemplate indicates an expected call of GetBlockTemplate.
func (*MockWorkPackageMockRecorder) GetCreatedAt ¶
func (mr *MockWorkPackageMockRecorder) GetCreatedAt() *gomock.Call
GetCreatedAt indicates an expected call of GetCreatedAt.
func (*MockWorkPackageMockRecorder) GetDifficulty ¶
func (mr *MockWorkPackageMockRecorder) GetDifficulty() *gomock.Call
GetDifficulty indicates an expected call of GetDifficulty.
func (*MockWorkPackageMockRecorder) GetJobID ¶
func (mr *MockWorkPackageMockRecorder) GetJobID() *gomock.Call
GetJobID indicates an expected call of GetJobID.
func (*MockWorkPackageMockRecorder) GetParameters ¶
func (mr *MockWorkPackageMockRecorder) GetParameters() *gomock.Call
GetParameters indicates an expected call of GetParameters.
func (*MockWorkPackageMockRecorder) GetTarget ¶
func (mr *MockWorkPackageMockRecorder) GetTarget() *gomock.Call
GetTarget indicates an expected call of GetTarget.
func (*MockWorkPackageMockRecorder) GetTimeout ¶
func (mr *MockWorkPackageMockRecorder) GetTimeout() *gomock.Call
GetTimeout indicates an expected call of GetTimeout.
func (*MockWorkPackageMockRecorder) IsStale ¶
func (mr *MockWorkPackageMockRecorder) IsStale() *gomock.Call
IsStale indicates an expected call of IsStale.
func (*MockWorkPackageMockRecorder) SetParameters ¶
func (mr *MockWorkPackageMockRecorder) SetParameters(params any) *gomock.Call
SetParameters indicates an expected call of SetParameters.
func (*MockWorkPackageMockRecorder) Validate ¶
func (mr *MockWorkPackageMockRecorder) Validate() *gomock.Call
Validate indicates an expected call of Validate.
type MockWorkResult ¶
type MockWorkResult struct {
// contains filtered or unexported fields
}
MockWorkResult is a mock of WorkResult interface.
func NewMockWorkResult ¶
func NewMockWorkResult(ctrl *gomock.Controller) *MockWorkResult
NewMockWorkResult creates a new mock instance.
func (*MockWorkResult) EXPECT ¶
func (m *MockWorkResult) EXPECT() *MockWorkResultMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWorkResult) GetBlock ¶
func (m *MockWorkResult) GetBlock() interfaces.Block
GetBlock mocks base method.
func (*MockWorkResult) GetDuration ¶
func (m *MockWorkResult) GetDuration() time.Duration
GetDuration mocks base method.
func (*MockWorkResult) GetJobID ¶
func (m *MockWorkResult) GetJobID() string
GetJobID mocks base method.
func (*MockWorkResult) GetMetadata ¶
func (m *MockWorkResult) GetMetadata() map[string]any
GetMetadata mocks base method.
func (*MockWorkResult) GetProof ¶
func (m *MockWorkResult) GetProof() []byte
GetProof mocks base method.
func (*MockWorkResult) GetThroughput ¶
func (m *MockWorkResult) GetThroughput() float64
GetThroughput mocks base method.
func (*MockWorkResult) GetTimestamp ¶
func (m *MockWorkResult) GetTimestamp() time.Time
GetTimestamp mocks base method.
func (*MockWorkResult) GetWorkerID ¶
func (m *MockWorkResult) GetWorkerID() string
GetWorkerID mocks base method.
type MockWorkResultMockRecorder ¶
type MockWorkResultMockRecorder struct {
// contains filtered or unexported fields
}
MockWorkResultMockRecorder is the mock recorder for MockWorkResult.
func (*MockWorkResultMockRecorder) GetBlock ¶
func (mr *MockWorkResultMockRecorder) GetBlock() *gomock.Call
GetBlock indicates an expected call of GetBlock.
func (*MockWorkResultMockRecorder) GetDuration ¶
func (mr *MockWorkResultMockRecorder) GetDuration() *gomock.Call
GetDuration indicates an expected call of GetDuration.
func (*MockWorkResultMockRecorder) GetJobID ¶
func (mr *MockWorkResultMockRecorder) GetJobID() *gomock.Call
GetJobID indicates an expected call of GetJobID.
func (*MockWorkResultMockRecorder) GetMetadata ¶
func (mr *MockWorkResultMockRecorder) GetMetadata() *gomock.Call
GetMetadata indicates an expected call of GetMetadata.
func (*MockWorkResultMockRecorder) GetProof ¶
func (mr *MockWorkResultMockRecorder) GetProof() *gomock.Call
GetProof indicates an expected call of GetProof.
func (*MockWorkResultMockRecorder) GetThroughput ¶
func (mr *MockWorkResultMockRecorder) GetThroughput() *gomock.Call
GetThroughput indicates an expected call of GetThroughput.
func (*MockWorkResultMockRecorder) GetTimestamp ¶
func (mr *MockWorkResultMockRecorder) GetTimestamp() *gomock.Call
GetTimestamp indicates an expected call of GetTimestamp.
func (*MockWorkResultMockRecorder) GetWorkerID ¶
func (mr *MockWorkResultMockRecorder) GetWorkerID() *gomock.Call
GetWorkerID indicates an expected call of GetWorkerID.
func (*MockWorkResultMockRecorder) Verify ¶
func (mr *MockWorkResultMockRecorder) Verify() *gomock.Call
Verify indicates an expected call of Verify.
type MockWorker ¶
type MockWorker struct {
// contains filtered or unexported fields
}
MockWorker is a mock of Worker interface.
func NewMockWorker ¶
func NewMockWorker(ctrl *gomock.Controller) *MockWorker
NewMockWorker creates a new mock instance.
func (*MockWorker) EXPECT ¶
func (m *MockWorker) EXPECT() *MockWorkerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWorker) GetAddress ¶
func (m *MockWorker) GetAddress() string
GetAddress mocks base method.
func (*MockWorker) GetMetrics ¶
func (m *MockWorker) GetMetrics() interfaces.WorkerMetrics
GetMetrics mocks base method.
func (*MockWorker) GetThroughput ¶
func (m *MockWorker) GetThroughput() float64
GetThroughput mocks base method.
func (*MockWorker) GetWorkerCount ¶
func (m *MockWorker) GetWorkerCount() int
GetWorkerCount mocks base method.
func (*MockWorker) Process ¶
func (m *MockWorker) Process(ctx context.Context, work interfaces.WorkPackage) (interfaces.WorkResult, error)
Process mocks base method.
func (*MockWorker) RegisterListener ¶
func (m *MockWorker) RegisterListener(listener interfaces.WorkerListener)
RegisterListener mocks base method.
func (*MockWorker) SetAddress ¶
func (m *MockWorker) SetAddress(address string) error
SetAddress mocks base method.
func (*MockWorker) SetWorkerCount ¶
func (m *MockWorker) SetWorkerCount(count int) error
SetWorkerCount mocks base method.
func (*MockWorker) Start ¶
func (m *MockWorker) Start(ctx context.Context) error
Start mocks base method.
func (*MockWorker) UnregisterListener ¶
func (m *MockWorker) UnregisterListener(listener interfaces.WorkerListener)
UnregisterListener mocks base method.
type MockWorkerListener ¶
type MockWorkerListener struct {
// contains filtered or unexported fields
}
MockWorkerListener is a mock of WorkerListener interface.
func NewMockWorkerListener ¶
func NewMockWorkerListener(ctrl *gomock.Controller) *MockWorkerListener
NewMockWorkerListener creates a new mock instance.
func (*MockWorkerListener) EXPECT ¶
func (m *MockWorkerListener) EXPECT() *MockWorkerListenerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWorkerListener) OnThroughputUpdated ¶
func (m *MockWorkerListener) OnThroughputUpdated(workerID string, throughput float64)
OnThroughputUpdated mocks base method.
func (*MockWorkerListener) OnWorkCancelled ¶
func (m *MockWorkerListener) OnWorkCancelled(workerID string)
OnWorkCancelled mocks base method.
func (*MockWorkerListener) OnWorkCompleted ¶
func (m *MockWorkerListener) OnWorkCompleted(workerID string, result interfaces.WorkResult)
OnWorkCompleted mocks base method.
func (*MockWorkerListener) OnWorkFailed ¶
func (m *MockWorkerListener) OnWorkFailed(workerID string, err error)
OnWorkFailed mocks base method.
func (*MockWorkerListener) OnWorkProgress ¶
func (m *MockWorkerListener) OnWorkProgress(workerID string, progress float64)
OnWorkProgress mocks base method.
func (*MockWorkerListener) OnWorkStarted ¶
func (m *MockWorkerListener) OnWorkStarted(workerID string, work interfaces.WorkPackage)
OnWorkStarted mocks base method.
type MockWorkerListenerMockRecorder ¶
type MockWorkerListenerMockRecorder struct {
// contains filtered or unexported fields
}
MockWorkerListenerMockRecorder is the mock recorder for MockWorkerListener.
func (*MockWorkerListenerMockRecorder) OnThroughputUpdated ¶
func (mr *MockWorkerListenerMockRecorder) OnThroughputUpdated(workerID, throughput any) *gomock.Call
OnThroughputUpdated indicates an expected call of OnThroughputUpdated.
func (*MockWorkerListenerMockRecorder) OnWorkCancelled ¶
func (mr *MockWorkerListenerMockRecorder) OnWorkCancelled(workerID any) *gomock.Call
OnWorkCancelled indicates an expected call of OnWorkCancelled.
func (*MockWorkerListenerMockRecorder) OnWorkCompleted ¶
func (mr *MockWorkerListenerMockRecorder) OnWorkCompleted(workerID, result any) *gomock.Call
OnWorkCompleted indicates an expected call of OnWorkCompleted.
func (*MockWorkerListenerMockRecorder) OnWorkFailed ¶
func (mr *MockWorkerListenerMockRecorder) OnWorkFailed(workerID, err any) *gomock.Call
OnWorkFailed indicates an expected call of OnWorkFailed.
func (*MockWorkerListenerMockRecorder) OnWorkProgress ¶
func (mr *MockWorkerListenerMockRecorder) OnWorkProgress(workerID, progress any) *gomock.Call
OnWorkProgress indicates an expected call of OnWorkProgress.
func (*MockWorkerListenerMockRecorder) OnWorkStarted ¶
func (mr *MockWorkerListenerMockRecorder) OnWorkStarted(workerID, work any) *gomock.Call
OnWorkStarted indicates an expected call of OnWorkStarted.
type MockWorkerMockRecorder ¶
type MockWorkerMockRecorder struct {
// contains filtered or unexported fields
}
MockWorkerMockRecorder is the mock recorder for MockWorker.
func (*MockWorkerMockRecorder) GetAddress ¶
func (mr *MockWorkerMockRecorder) GetAddress() *gomock.Call
GetAddress indicates an expected call of GetAddress.
func (*MockWorkerMockRecorder) GetID ¶
func (mr *MockWorkerMockRecorder) GetID() *gomock.Call
GetID indicates an expected call of GetID.
func (*MockWorkerMockRecorder) GetMetrics ¶
func (mr *MockWorkerMockRecorder) GetMetrics() *gomock.Call
GetMetrics indicates an expected call of GetMetrics.
func (*MockWorkerMockRecorder) GetThroughput ¶
func (mr *MockWorkerMockRecorder) GetThroughput() *gomock.Call
GetThroughput indicates an expected call of GetThroughput.
func (*MockWorkerMockRecorder) GetWorkerCount ¶
func (mr *MockWorkerMockRecorder) GetWorkerCount() *gomock.Call
GetWorkerCount indicates an expected call of GetWorkerCount.
func (*MockWorkerMockRecorder) IsRunning ¶
func (mr *MockWorkerMockRecorder) IsRunning() *gomock.Call
IsRunning indicates an expected call of IsRunning.
func (*MockWorkerMockRecorder) Process ¶
func (mr *MockWorkerMockRecorder) Process(ctx, work any) *gomock.Call
Process indicates an expected call of Process.
func (*MockWorkerMockRecorder) RegisterListener ¶
func (mr *MockWorkerMockRecorder) RegisterListener(listener any) *gomock.Call
RegisterListener indicates an expected call of RegisterListener.
func (*MockWorkerMockRecorder) SetAddress ¶
func (mr *MockWorkerMockRecorder) SetAddress(address any) *gomock.Call
SetAddress indicates an expected call of SetAddress.
func (*MockWorkerMockRecorder) SetWorkerCount ¶
func (mr *MockWorkerMockRecorder) SetWorkerCount(count any) *gomock.Call
SetWorkerCount indicates an expected call of SetWorkerCount.
func (*MockWorkerMockRecorder) Start ¶
func (mr *MockWorkerMockRecorder) Start(ctx any) *gomock.Call
Start indicates an expected call of Start.
func (*MockWorkerMockRecorder) Stop ¶
func (mr *MockWorkerMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
func (*MockWorkerMockRecorder) UnregisterListener ¶
func (mr *MockWorkerMockRecorder) UnregisterListener(listener any) *gomock.Call
UnregisterListener indicates an expected call of UnregisterListener.
type MockWorkerPool ¶
type MockWorkerPool struct {
// contains filtered or unexported fields
}
MockWorkerPool is a mock of WorkerPool interface.
func NewMockWorkerPool ¶
func NewMockWorkerPool(ctrl *gomock.Controller) *MockWorkerPool
NewMockWorkerPool creates a new mock instance.
func (*MockWorkerPool) AddWorker ¶
func (m *MockWorkerPool) AddWorker(worker interfaces.Worker) error
AddWorker mocks base method.
func (*MockWorkerPool) EXPECT ¶
func (m *MockWorkerPool) EXPECT() *MockWorkerPoolMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWorkerPool) GetResult ¶
func (m *MockWorkerPool) GetResult(ctx context.Context) (interfaces.WorkResult, error)
GetResult mocks base method.
func (*MockWorkerPool) GetWorkers ¶
func (m *MockWorkerPool) GetWorkers() []interfaces.Worker
GetWorkers mocks base method.
func (*MockWorkerPool) IsRunning ¶
func (m *MockWorkerPool) IsRunning() bool
IsRunning mocks base method.
func (*MockWorkerPool) RemoveWorker ¶
func (m *MockWorkerPool) RemoveWorker(workerID string) error
RemoveWorker mocks base method.
func (*MockWorkerPool) Start ¶
func (m *MockWorkerPool) Start(ctx context.Context) error
Start mocks base method.
func (*MockWorkerPool) Stop ¶
func (m *MockWorkerPool) Stop(ctx context.Context) error
Stop mocks base method.
func (*MockWorkerPool) Submit ¶
func (m *MockWorkerPool) Submit(work interfaces.WorkPackage) error
Submit mocks base method.
type MockWorkerPoolMockRecorder ¶
type MockWorkerPoolMockRecorder struct {
// contains filtered or unexported fields
}
MockWorkerPoolMockRecorder is the mock recorder for MockWorkerPool.
func (*MockWorkerPoolMockRecorder) AddWorker ¶
func (mr *MockWorkerPoolMockRecorder) AddWorker(worker any) *gomock.Call
AddWorker indicates an expected call of AddWorker.
func (*MockWorkerPoolMockRecorder) GetResult ¶
func (mr *MockWorkerPoolMockRecorder) GetResult(ctx any) *gomock.Call
GetResult indicates an expected call of GetResult.
func (*MockWorkerPoolMockRecorder) GetWorkers ¶
func (mr *MockWorkerPoolMockRecorder) GetWorkers() *gomock.Call
GetWorkers indicates an expected call of GetWorkers.
func (*MockWorkerPoolMockRecorder) IsRunning ¶
func (mr *MockWorkerPoolMockRecorder) IsRunning() *gomock.Call
IsRunning indicates an expected call of IsRunning.
func (*MockWorkerPoolMockRecorder) RemoveWorker ¶
func (mr *MockWorkerPoolMockRecorder) RemoveWorker(workerID any) *gomock.Call
RemoveWorker indicates an expected call of RemoveWorker.
func (*MockWorkerPoolMockRecorder) Start ¶
func (mr *MockWorkerPoolMockRecorder) Start(ctx any) *gomock.Call
Start indicates an expected call of Start.