outport

package
v1.6.17 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type 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