mocks

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2025 License: MIT Imports: 5 Imported by: 0

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

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) Clone

func (m *MockBlock) Clone() interfaces.Block

Clone mocks base method.

func (*MockBlock) ComputeHash

func (m *MockBlock) ComputeHash() ([]byte, error)

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

func (m *MockBlock) GetCachedHash() []byte

GetCachedHash mocks base method.

func (*MockBlock) GetData

func (m *MockBlock) GetData() []byte

GetData mocks base method.

func (*MockBlock) GetDifficulty

func (m *MockBlock) GetDifficulty() any

GetDifficulty mocks base method.

func (*MockBlock) GetHashAlgorithm

func (m *MockBlock) GetHashAlgorithm() string

GetHashAlgorithm mocks base method.

func (*MockBlock) GetHashableBytes

func (m *MockBlock) GetHashableBytes() ([]byte, error)

GetHashableBytes mocks base method.

func (*MockBlock) GetIndex

func (m *MockBlock) GetIndex() uint64

GetIndex mocks base method.

func (*MockBlock) GetMetadata

func (m *MockBlock) GetMetadata() map[string]any

GetMetadata mocks base method.

func (*MockBlock) GetNonce

func (m *MockBlock) GetNonce() uint64

GetNonce mocks base method.

func (*MockBlock) GetPreviousHash

func (m *MockBlock) GetPreviousHash() string

GetPreviousHash mocks base method.

func (*MockBlock) GetProof

func (m *MockBlock) GetProof() []byte

GetProof mocks base method.

func (*MockBlock) GetProposer

func (m *MockBlock) GetProposer() string

GetProposer mocks base method.

func (*MockBlock) GetSize

func (m *MockBlock) GetSize() int

GetSize mocks base method.

func (*MockBlock) GetTimestamp

func (m *MockBlock) GetTimestamp() time.Time

GetTimestamp mocks base method.

func (*MockBlock) InvalidateCache

func (m *MockBlock) InvalidateCache()

InvalidateCache mocks base method.

func (*MockBlock) Serialize

func (m *MockBlock) Serialize() ([]byte, error)

Serialize mocks base method.

func (*MockBlock) SetData

func (m *MockBlock) SetData(data []byte)

SetData mocks base method.

func (*MockBlock) SetDifficulty

func (m *MockBlock) SetDifficulty(difficulty any)

SetDifficulty mocks base method.

func (*MockBlock) SetMetadata

func (m *MockBlock) SetMetadata(metadata map[string]any)

SetMetadata mocks base method.

func (*MockBlock) SetNonce

func (m *MockBlock) SetNonce(nonce uint64)

SetNonce mocks base method.

func (*MockBlock) SetProof

func (m *MockBlock) SetProof(proof []byte)

SetProof mocks base method.

func (*MockBlock) SetProposer

func (m *MockBlock) SetProposer(proposer string)

SetProposer mocks base method.

func (*MockBlock) Validate

func (m *MockBlock) Validate() error

Validate mocks base method.

func (*MockBlock) Verify

func (m *MockBlock) Verify(hash []byte) (bool, error)

Verify 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.

func (*MockBlockMockRecorder) Verify

func (mr *MockBlockMockRecorder) Verify(hash any) *gomock.Call

Verify indicates an expected call of Verify.

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

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) Stop

func (m *MockConsensus) Stop() error

Stop 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

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

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) Clear

func (m *MockErrorReporter) Clear()

Clear mocks base method.

func (*MockErrorReporter) EXPECT

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

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockExtension) Execute

Execute mocks base method.

func (*MockExtension) GetMetadata

func (m *MockExtension) GetMetadata() interfaces.ExtensionMetadata

GetMetadata mocks base method.

func (*MockExtension) GetName

func (m *MockExtension) GetName() string

GetName 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.

func (*MockExtensionMockRecorder) Validate

func (mr *MockExtensionMockRecorder) Validate(input any) *gomock.Call

Validate indicates an expected call of Validate.

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

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.

func (*MockHashable) Verify

func (m *MockHashable) Verify(hash []byte) (bool, error)

Verify 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.

func (*MockHashableMockRecorder) Verify

func (mr *MockHashableMockRecorder) Verify(hash any) *gomock.Call

Verify indicates an expected call of Verify.

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) Clone

func (m *MockHasher) Clone() interfaces.Hasher

Clone mocks base method.

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.

func (*MockHasher) IsSecure

func (m *MockHasher) IsSecure() bool

IsSecure mocks base method.

func (*MockHasher) Reset

func (m *MockHasher) Reset()

Reset 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

func (m *MockHook) ContinueOnError() bool

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) Execute

func (m *MockHook) Execute(ctx context.Context, data any) error

Execute mocks base method.

func (*MockHook) GetName

func (m *MockHook) GetName() string

GetName mocks base method.

func (*MockHook) GetPriority

func (m *MockHook) GetPriority() int

GetPriority mocks base method.

func (*MockHook) IsEnabled

func (m *MockHook) IsEnabled() bool

IsEnabled mocks base method.

func (*MockHook) SetEnabled

func (m *MockHook) SetEnabled(enabled bool)

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockIterator) Error

func (m *MockIterator) Error() error

Error mocks base method.

func (*MockIterator) Key

func (m *MockIterator) Key() []byte

Key mocks base method.

func (*MockIterator) Next

func (m *MockIterator) Next() bool

Next mocks base method.

func (*MockIterator) Release

func (m *MockIterator) Release()

Release mocks base method.

func (*MockIterator) Seek

func (m *MockIterator) Seek(key []byte) bool

Seek mocks base method.

func (*MockIterator) Value

func (m *MockIterator) Value() []byte

Value mocks base method.

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

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) GetName

func (m *MockPlugin) GetName() string

GetName 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

func (m *MockPlugin) Initialize(ctx context.Context, config map[string]any) error

Initialize mocks base method.

func (*MockPlugin) Start

func (m *MockPlugin) Start(ctx context.Context) error

Start mocks base method.

func (*MockPlugin) Stop

func (m *MockPlugin) Stop() error

Stop 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

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

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

Rollback indicates an expected call of Rollback.

func (*MockStateTransitionMockRecorder) Validate

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) Close

func (m *MockStorage) Close() error

Close mocks base method.

func (*MockStorage) Compact

func (m *MockStorage) Compact() error

Compact 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.

func (*MockStorage) Put

func (m *MockStorage) Put(key, value []byte) error

Put 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.

func (*MockStorageMockRecorder) Put

func (mr *MockStorageMockRecorder) Put(key, value any) *gomock.Call

Put indicates an expected call of Put.

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) Commit

func (m *MockTransaction) Commit() error

Commit mocks base method.

func (*MockTransaction) Delete

func (m *MockTransaction) Delete(key []byte) error

Delete mocks base method.

func (*MockTransaction) Discard

func (m *MockTransaction) Discard()

Discard mocks base method.

func (*MockTransaction) EXPECT

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

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockValidationPipeline) Execute

Execute mocks base method.

func (*MockValidationPipeline) ExecuteParallel

ExecuteParallel mocks base method.

func (*MockValidationPipeline) GetMetrics

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

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

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) GetName

func (m *MockValidator) GetName() string

GetName 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

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

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

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.

func (*MockWorkResult) Verify

func (m *MockWorkResult) Verify() error

Verify 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) GetID

func (m *MockWorker) GetID() string

GetID 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) IsRunning

func (m *MockWorker) IsRunning() bool

IsRunning mocks base method.

func (*MockWorker) Process

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) Stop

func (m *MockWorker) Stop() error

Stop 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

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

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockWorkerPool) GetResult

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.

func (*MockWorkerPoolMockRecorder) Stop

func (mr *MockWorkerPoolMockRecorder) Stop(ctx any) *gomock.Call

Stop indicates an expected call of Stop.

func (*MockWorkerPoolMockRecorder) Submit

func (mr *MockWorkerPoolMockRecorder) Submit(work any) *gomock.Call

Submit indicates an expected call of Submit.

Jump to

Keyboard shortcuts

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