gossiptopics

package
v0.0.0-...-bf1cce6 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MIT Imports: 5 Imported by: 12

Documentation

Overview

AUTO GENERATED FILE (by membufc proto compiler v0.4.0)

AUTO GENERATED FILE (by membufc proto compiler v0.4.0)

AUTO GENERATED FILE (by membufc proto compiler v0.4.0)

AUTO GENERATED FILE (by membufc proto compiler v0.4.0)

AUTO GENERATED FILE (by membufc proto compiler v0.4.0)

AUTO GENERATED FILE (by membufc proto compiler v0.4.0)

AUTO GENERATED FILE (by membufc proto compiler v0.4.0)

AUTO GENERATED FILE (by membufc proto compiler v0.4.0)

AUTO GENERATED FILE (by membufc proto compiler v0.4.0)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BenchmarkConsensus

type BenchmarkConsensus interface {
	BroadcastBenchmarkConsensusCommit(ctx context.Context, input *BenchmarkConsensusCommitInput) (*EmptyOutput, error)
	SendBenchmarkConsensusCommitted(ctx context.Context, input *BenchmarkConsensusCommittedInput) (*EmptyOutput, error)
	RegisterBenchmarkConsensusHandler(handler BenchmarkConsensusHandler)
}

type BenchmarkConsensusCommitInput

type BenchmarkConsensusCommitInput struct {
	Message *gossipmessages.BenchmarkConsensusCommitMessage
}

func (*BenchmarkConsensusCommitInput) String

func (*BenchmarkConsensusCommitInput) StringMessage

func (x *BenchmarkConsensusCommitInput) StringMessage() (res string)

type BenchmarkConsensusCommittedInput

type BenchmarkConsensusCommittedInput struct {
	RecipientNodeAddress primitives.NodeAddress
	Message              *gossipmessages.BenchmarkConsensusCommittedMessage
}

func (*BenchmarkConsensusCommittedInput) String

func (*BenchmarkConsensusCommittedInput) StringMessage

func (x *BenchmarkConsensusCommittedInput) StringMessage() (res string)

func (*BenchmarkConsensusCommittedInput) StringRecipientNodeAddress

func (x *BenchmarkConsensusCommittedInput) StringRecipientNodeAddress() (res string)

type BenchmarkConsensusHandler

type BenchmarkConsensusHandler interface {
	HandleBenchmarkConsensusCommit(ctx context.Context, input *BenchmarkConsensusCommitInput) (*EmptyOutput, error)
	HandleBenchmarkConsensusCommitted(ctx context.Context, input *BenchmarkConsensusCommittedInput) (*EmptyOutput, error)
}

type BlockAvailabilityRequestInput

type BlockAvailabilityRequestInput struct {
	Message *gossipmessages.BlockAvailabilityRequestMessage
}

func (*BlockAvailabilityRequestInput) String

func (*BlockAvailabilityRequestInput) StringMessage

func (x *BlockAvailabilityRequestInput) StringMessage() (res string)

type BlockAvailabilityResponseInput

type BlockAvailabilityResponseInput struct {
	RecipientNodeAddress primitives.NodeAddress
	Message              *gossipmessages.BlockAvailabilityResponseMessage
}

func (*BlockAvailabilityResponseInput) String

func (*BlockAvailabilityResponseInput) StringMessage

func (x *BlockAvailabilityResponseInput) StringMessage() (res string)

func (*BlockAvailabilityResponseInput) StringRecipientNodeAddress

func (x *BlockAvailabilityResponseInput) StringRecipientNodeAddress() (res string)

type BlockSync

type BlockSync interface {
	BroadcastBlockAvailabilityRequest(ctx context.Context, input *BlockAvailabilityRequestInput) (*EmptyOutput, error)
	SendBlockAvailabilityResponse(ctx context.Context, input *BlockAvailabilityResponseInput) (*EmptyOutput, error)
	SendBlockSyncRequest(ctx context.Context, input *BlockSyncRequestInput) (*EmptyOutput, error)
	SendBlockSyncResponse(ctx context.Context, input *BlockSyncResponseInput) (*EmptyOutput, error)
	RegisterBlockSyncHandler(handler BlockSyncHandler)
}

type BlockSyncHandler

type BlockSyncHandler interface {
	HandleBlockAvailabilityRequest(ctx context.Context, input *BlockAvailabilityRequestInput) (*EmptyOutput, error)
	HandleBlockAvailabilityResponse(ctx context.Context, input *BlockAvailabilityResponseInput) (*EmptyOutput, error)
	HandleBlockSyncRequest(ctx context.Context, input *BlockSyncRequestInput) (*EmptyOutput, error)
	HandleBlockSyncResponse(ctx context.Context, input *BlockSyncResponseInput) (*EmptyOutput, error)
}

type BlockSyncRequestInput

type BlockSyncRequestInput struct {
	RecipientNodeAddress primitives.NodeAddress
	Message              *gossipmessages.BlockSyncRequestMessage
}

func (*BlockSyncRequestInput) String

func (x *BlockSyncRequestInput) String() string

func (*BlockSyncRequestInput) StringMessage

func (x *BlockSyncRequestInput) StringMessage() (res string)

func (*BlockSyncRequestInput) StringRecipientNodeAddress

func (x *BlockSyncRequestInput) StringRecipientNodeAddress() (res string)

type BlockSyncResponseInput

type BlockSyncResponseInput struct {
	RecipientNodeAddress primitives.NodeAddress
	Message              *gossipmessages.BlockSyncResponseMessage
}

func (*BlockSyncResponseInput) String

func (x *BlockSyncResponseInput) String() string

func (*BlockSyncResponseInput) StringMessage

func (x *BlockSyncResponseInput) StringMessage() (res string)

func (*BlockSyncResponseInput) StringRecipientNodeAddress

func (x *BlockSyncResponseInput) StringRecipientNodeAddress() (res string)

type EmptyOutput

type EmptyOutput struct {
}

func (*EmptyOutput) String

func (x *EmptyOutput) String() string

type ForwardedTransactionsInput

type ForwardedTransactionsInput struct {
	Message *gossipmessages.ForwardedTransactionsMessage
}

func (*ForwardedTransactionsInput) String

func (x *ForwardedTransactionsInput) String() string

func (*ForwardedTransactionsInput) StringMessage

func (x *ForwardedTransactionsInput) StringMessage() (res string)

type LeanHelix

type LeanHelix interface {
	SendLeanHelixMessage(ctx context.Context, input *LeanHelixInput) (*EmptyOutput, error)
	RegisterLeanHelixHandler(handler LeanHelixHandler)
}

type LeanHelixHandler

type LeanHelixHandler interface {
	HandleLeanHelixMessage(ctx context.Context, input *LeanHelixInput) (*EmptyOutput, error)
}

type LeanHelixInput

type LeanHelixInput struct {
	RecipientsList *RecipientsList
	Message        *gossipmessages.LeanHelixMessage
}

func (*LeanHelixInput) String

func (x *LeanHelixInput) String() string

func (*LeanHelixInput) StringMessage

func (x *LeanHelixInput) StringMessage() (res string)

func (*LeanHelixInput) StringRecipientsList

func (x *LeanHelixInput) StringRecipientsList() (res string)

type MockBenchmarkConsensus

type MockBenchmarkConsensus struct {
	mock.Mock
}

func (*MockBenchmarkConsensus) BroadcastBenchmarkConsensusCommit

func (s *MockBenchmarkConsensus) BroadcastBenchmarkConsensusCommit(ctx context.Context, input *BenchmarkConsensusCommitInput) (*EmptyOutput, error)

func (*MockBenchmarkConsensus) RegisterBenchmarkConsensusHandler

func (s *MockBenchmarkConsensus) RegisterBenchmarkConsensusHandler(handler BenchmarkConsensusHandler)

func (*MockBenchmarkConsensus) SendBenchmarkConsensusCommitted

func (s *MockBenchmarkConsensus) SendBenchmarkConsensusCommitted(ctx context.Context, input *BenchmarkConsensusCommittedInput) (*EmptyOutput, error)

type MockBenchmarkConsensusHandler

type MockBenchmarkConsensusHandler struct {
	mock.Mock
}

func (*MockBenchmarkConsensusHandler) HandleBenchmarkConsensusCommit

func (s *MockBenchmarkConsensusHandler) HandleBenchmarkConsensusCommit(ctx context.Context, input *BenchmarkConsensusCommitInput) (*EmptyOutput, error)

func (*MockBenchmarkConsensusHandler) HandleBenchmarkConsensusCommitted

func (s *MockBenchmarkConsensusHandler) HandleBenchmarkConsensusCommitted(ctx context.Context, input *BenchmarkConsensusCommittedInput) (*EmptyOutput, error)

type MockBlockSync

type MockBlockSync struct {
	mock.Mock
}

func (*MockBlockSync) BroadcastBlockAvailabilityRequest

func (s *MockBlockSync) BroadcastBlockAvailabilityRequest(ctx context.Context, input *BlockAvailabilityRequestInput) (*EmptyOutput, error)

func (*MockBlockSync) RegisterBlockSyncHandler

func (s *MockBlockSync) RegisterBlockSyncHandler(handler BlockSyncHandler)

func (*MockBlockSync) SendBlockAvailabilityResponse

func (s *MockBlockSync) SendBlockAvailabilityResponse(ctx context.Context, input *BlockAvailabilityResponseInput) (*EmptyOutput, error)

func (*MockBlockSync) SendBlockSyncRequest

func (s *MockBlockSync) SendBlockSyncRequest(ctx context.Context, input *BlockSyncRequestInput) (*EmptyOutput, error)

func (*MockBlockSync) SendBlockSyncResponse

func (s *MockBlockSync) SendBlockSyncResponse(ctx context.Context, input *BlockSyncResponseInput) (*EmptyOutput, error)

type MockBlockSyncHandler

type MockBlockSyncHandler struct {
	mock.Mock
}

func (*MockBlockSyncHandler) HandleBlockAvailabilityRequest

func (s *MockBlockSyncHandler) HandleBlockAvailabilityRequest(ctx context.Context, input *BlockAvailabilityRequestInput) (*EmptyOutput, error)

func (*MockBlockSyncHandler) HandleBlockAvailabilityResponse

func (s *MockBlockSyncHandler) HandleBlockAvailabilityResponse(ctx context.Context, input *BlockAvailabilityResponseInput) (*EmptyOutput, error)

func (*MockBlockSyncHandler) HandleBlockSyncRequest

func (s *MockBlockSyncHandler) HandleBlockSyncRequest(ctx context.Context, input *BlockSyncRequestInput) (*EmptyOutput, error)

func (*MockBlockSyncHandler) HandleBlockSyncResponse

func (s *MockBlockSyncHandler) HandleBlockSyncResponse(ctx context.Context, input *BlockSyncResponseInput) (*EmptyOutput, error)

type MockLeanHelix

type MockLeanHelix struct {
	mock.Mock
}

func (*MockLeanHelix) RegisterLeanHelixHandler

func (s *MockLeanHelix) RegisterLeanHelixHandler(handler LeanHelixHandler)

func (*MockLeanHelix) SendLeanHelixMessage

func (s *MockLeanHelix) SendLeanHelixMessage(ctx context.Context, input *LeanHelixInput) (*EmptyOutput, error)

type MockLeanHelixHandler

type MockLeanHelixHandler struct {
	mock.Mock
}

func (*MockLeanHelixHandler) HandleLeanHelixMessage

func (s *MockLeanHelixHandler) HandleLeanHelixMessage(ctx context.Context, input *LeanHelixInput) (*EmptyOutput, error)

type MockTransactionRelay

type MockTransactionRelay struct {
	mock.Mock
}

func (*MockTransactionRelay) BroadcastForwardedTransactions

func (s *MockTransactionRelay) BroadcastForwardedTransactions(ctx context.Context, input *ForwardedTransactionsInput) (*EmptyOutput, error)

func (*MockTransactionRelay) RegisterTransactionRelayHandler

func (s *MockTransactionRelay) RegisterTransactionRelayHandler(handler TransactionRelayHandler)

type MockTransactionRelayHandler

type MockTransactionRelayHandler struct {
	mock.Mock
}

func (*MockTransactionRelayHandler) HandleForwardedTransactions

func (s *MockTransactionRelayHandler) HandleForwardedTransactions(ctx context.Context, input *ForwardedTransactionsInput) (*EmptyOutput, error)

type RecipientsList

type RecipientsList struct {
	RecipientNodeAddresses []primitives.NodeAddress
	RecipientMode          gossipmessages.RecipientsListMode
}

func (*RecipientsList) String

func (x *RecipientsList) String() string

func (*RecipientsList) StringRecipientMode

func (x *RecipientsList) StringRecipientMode() (res string)

func (*RecipientsList) StringRecipientNodeAddresses

func (x *RecipientsList) StringRecipientNodeAddresses() (res string)

type TransactionRelay

type TransactionRelay interface {
	BroadcastForwardedTransactions(ctx context.Context, input *ForwardedTransactionsInput) (*EmptyOutput, error)
	RegisterTransactionRelayHandler(handler TransactionRelayHandler)
}

type TransactionRelayHandler

type TransactionRelayHandler interface {
	HandleForwardedTransactions(ctx context.Context, input *ForwardedTransactionsInput) (*EmptyOutput, error)
}

Jump to

Keyboard shortcuts

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