outport

package
v1.8.13 Latest Latest
Warning

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

Go to latest
Published: May 14, 2025 License: GPL-3.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockContainerStub added in v1.6.0

type BlockContainerStub struct {
	GetCalled func(headerType core.HeaderType) (block.EmptyBlockCreator, error)
}

BlockContainerStub -

func (*BlockContainerStub) Get added in v1.6.0

Get -

type OutportDataProviderStub

type OutportDataProviderStub struct {
	PrepareOutportSaveBlockDataCalled func(
		arg process.ArgPrepareOutportSaveBlockData,
	) (*outportcore.OutportBlockWithHeaderAndBody, error)
}

OutportDataProviderStub -

func (*OutportDataProviderStub) IsInterfaceNil

func (a *OutportDataProviderStub) IsInterfaceNil() bool

IsInterfaceNil -

func (*OutportDataProviderStub) PrepareOutportSaveBlockData

PrepareOutportSaveBlockData -

type OutportStub

type OutportStub struct {
	SaveBlockCalled             func(args *outportcore.OutportBlockWithHeaderAndBody) error
	SaveValidatorsRatingCalled  func(validatorsRating *outportcore.ValidatorsRating)
	SaveValidatorsPubKeysCalled func(validatorsPubKeys *outportcore.ValidatorsPubKeys)
	HasDriversCalled            func() bool
}

OutportStub is a mock implementation fot the OutportHandler interface

func (*OutportStub) Close

func (as *OutportStub) Close() error

Close -

func (*OutportStub) FinalizedBlock

func (as *OutportStub) FinalizedBlock(_ *outportcore.FinalizedBlock)

FinalizedBlock -

func (*OutportStub) HasDrivers

func (as *OutportStub) HasDrivers() bool

HasDrivers -

func (*OutportStub) IsInterfaceNil

func (as *OutportStub) IsInterfaceNil() bool

IsInterfaceNil returns true if there is no value under the interface

func (*OutportStub) RevertIndexedBlock

func (as *OutportStub) RevertIndexedBlock(_ *outportcore.HeaderDataWithBody) error

RevertIndexedBlock -

func (*OutportStub) SaveAccounts

func (as *OutportStub) SaveAccounts(_ *outportcore.Accounts)

SaveAccounts -

func (*OutportStub) SaveBlock

SaveBlock -

func (*OutportStub) SaveRoundsInfo

func (as *OutportStub) SaveRoundsInfo(_ *outportcore.RoundsInfo)

SaveRoundsInfo -

func (*OutportStub) SaveValidatorsPubKeys

func (as *OutportStub) SaveValidatorsPubKeys(validatorsPubKeys *outportcore.ValidatorsPubKeys)

SaveValidatorsPubKeys -

func (*OutportStub) SaveValidatorsRating

func (as *OutportStub) SaveValidatorsRating(validatorsRating *outportcore.ValidatorsRating)

SaveValidatorsRating -

func (*OutportStub) SubscribeDriver

func (as *OutportStub) SubscribeDriver(_ outport.Driver) error

SubscribeDriver -

type SenderHostStub added in v1.6.0

type SenderHostStub struct {
	SendCalled              func(payload []byte, topic string) error
	SetPayloadHandlerCalled func(handler websocket.PayloadHandler) error
	CloseCalled             func() error
}

SenderHostStub -

func (*SenderHostStub) Close added in v1.6.0

func (s *SenderHostStub) Close() error

Close -

func (*SenderHostStub) IsInterfaceNil added in v1.6.0

func (s *SenderHostStub) IsInterfaceNil() bool

IsInterfaceNil -

func (*SenderHostStub) Send added in v1.6.0

func (s *SenderHostStub) Send(payload []byte, topic string) error

Send -

func (*SenderHostStub) SetPayloadHandler added in v1.6.0

func (s *SenderHostStub) SetPayloadHandler(handler websocket.PayloadHandler) error

SetPayloadHandler -

Jump to

Keyboard shortcuts

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