messagemock

package
v1.11.12-rc.2 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package messagemock is a generated GoMock package.

Package messagemock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OutboundMessage

type OutboundMessage struct {
	// contains filtered or unexported fields
}

OutboundMessage is a mock of OutboundMessage interface.

func NewOutboundMessage

func NewOutboundMessage(ctrl *gomock.Controller) *OutboundMessage

NewOutboundMessage creates a new mock instance.

func (*OutboundMessage) BypassThrottling

func (m *OutboundMessage) BypassThrottling() bool

BypassThrottling mocks base method.

func (*OutboundMessage) Bytes

func (m *OutboundMessage) Bytes() []byte

Bytes mocks base method.

func (*OutboundMessage) BytesSavedCompression

func (m *OutboundMessage) BytesSavedCompression() int

BytesSavedCompression mocks base method.

func (*OutboundMessage) EXPECT

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

func (*OutboundMessage) Op

func (m *OutboundMessage) Op() message.Op

Op mocks base method.

type OutboundMessageMockRecorder

type OutboundMessageMockRecorder struct {
	// contains filtered or unexported fields
}

OutboundMessageMockRecorder is the mock recorder for OutboundMessage.

func (*OutboundMessageMockRecorder) BypassThrottling

func (mr *OutboundMessageMockRecorder) BypassThrottling() *gomock.Call

BypassThrottling indicates an expected call of BypassThrottling.

func (*OutboundMessageMockRecorder) Bytes

Bytes indicates an expected call of Bytes.

func (*OutboundMessageMockRecorder) BytesSavedCompression

func (mr *OutboundMessageMockRecorder) BytesSavedCompression() *gomock.Call

BytesSavedCompression indicates an expected call of BytesSavedCompression.

func (*OutboundMessageMockRecorder) Op

Op indicates an expected call of Op.

type OutboundMsgBuilder

type OutboundMsgBuilder struct {
	// contains filtered or unexported fields
}

OutboundMsgBuilder is a mock of OutboundMsgBuilder interface.

func NewOutboundMsgBuilder

func NewOutboundMsgBuilder(ctrl *gomock.Controller) *OutboundMsgBuilder

NewOutboundMsgBuilder creates a new mock instance.

func (*OutboundMsgBuilder) Accepted

func (m *OutboundMsgBuilder) Accepted(arg0 ids.ID, arg1 uint32, arg2 []ids.ID) (message.OutboundMessage, error)

Accepted mocks base method.

func (*OutboundMsgBuilder) AcceptedFrontier

func (m *OutboundMsgBuilder) AcceptedFrontier(arg0 ids.ID, arg1 uint32, arg2 ids.ID) (message.OutboundMessage, error)

AcceptedFrontier mocks base method.

func (*OutboundMsgBuilder) AcceptedStateSummary

func (m *OutboundMsgBuilder) AcceptedStateSummary(arg0 ids.ID, arg1 uint32, arg2 []ids.ID) (message.OutboundMessage, error)

AcceptedStateSummary mocks base method.

func (*OutboundMsgBuilder) Ancestors

func (m *OutboundMsgBuilder) Ancestors(arg0 ids.ID, arg1 uint32, arg2 [][]byte) (message.OutboundMessage, error)

Ancestors mocks base method.

func (*OutboundMsgBuilder) AppError

func (m *OutboundMsgBuilder) AppError(arg0 ids.ID, arg1 uint32, arg2 int32, arg3 string) (message.OutboundMessage, error)

AppError mocks base method.

func (*OutboundMsgBuilder) AppGossip

func (m *OutboundMsgBuilder) AppGossip(arg0 ids.ID, arg1 []byte) (message.OutboundMessage, error)

AppGossip mocks base method.

func (*OutboundMsgBuilder) AppRequest

func (m *OutboundMsgBuilder) AppRequest(arg0 ids.ID, arg1 uint32, arg2 time.Duration, arg3 []byte) (message.OutboundMessage, error)

AppRequest mocks base method.

func (*OutboundMsgBuilder) AppResponse

func (m *OutboundMsgBuilder) AppResponse(arg0 ids.ID, arg1 uint32, arg2 []byte) (message.OutboundMessage, error)

AppResponse mocks base method.

func (*OutboundMsgBuilder) Chits

func (m *OutboundMsgBuilder) Chits(arg0 ids.ID, arg1 uint32, arg2, arg3, arg4 ids.ID) (message.OutboundMessage, error)

Chits mocks base method.

func (*OutboundMsgBuilder) EXPECT

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

func (*OutboundMsgBuilder) Get

func (m *OutboundMsgBuilder) Get(arg0 ids.ID, arg1 uint32, arg2 time.Duration, arg3 ids.ID) (message.OutboundMessage, error)

Get mocks base method.

func (*OutboundMsgBuilder) GetAccepted

func (m *OutboundMsgBuilder) GetAccepted(arg0 ids.ID, arg1 uint32, arg2 time.Duration, arg3 []ids.ID) (message.OutboundMessage, error)

GetAccepted mocks base method.

func (*OutboundMsgBuilder) GetAcceptedFrontier

func (m *OutboundMsgBuilder) GetAcceptedFrontier(arg0 ids.ID, arg1 uint32, arg2 time.Duration) (message.OutboundMessage, error)

GetAcceptedFrontier mocks base method.

func (*OutboundMsgBuilder) GetAcceptedStateSummary

func (m *OutboundMsgBuilder) GetAcceptedStateSummary(arg0 ids.ID, arg1 uint32, arg2 time.Duration, arg3 []uint64) (message.OutboundMessage, error)

GetAcceptedStateSummary mocks base method.

func (*OutboundMsgBuilder) GetAncestors

func (m *OutboundMsgBuilder) GetAncestors(arg0 ids.ID, arg1 uint32, arg2 time.Duration, arg3 ids.ID, arg4 p2p.EngineType) (message.OutboundMessage, error)

GetAncestors mocks base method.

func (*OutboundMsgBuilder) GetPeerList

func (m *OutboundMsgBuilder) GetPeerList(arg0, arg1 []byte, arg2 bool) (message.OutboundMessage, error)

GetPeerList mocks base method.

func (*OutboundMsgBuilder) GetStateSummaryFrontier

func (m *OutboundMsgBuilder) GetStateSummaryFrontier(arg0 ids.ID, arg1 uint32, arg2 time.Duration) (message.OutboundMessage, error)

GetStateSummaryFrontier mocks base method.

func (*OutboundMsgBuilder) Handshake

func (m *OutboundMsgBuilder) Handshake(arg0 uint32, arg1 uint64, arg2 netip.AddrPort, arg3 string, arg4, arg5, arg6 uint32, arg7 uint64, arg8, arg9 []byte, arg10 []ids.ID, arg11, arg12 []uint32, arg13, arg14 []byte, arg15 bool) (message.OutboundMessage, error)

Handshake mocks base method.

func (*OutboundMsgBuilder) PeerList

func (m *OutboundMsgBuilder) PeerList(arg0 []*ips.ClaimedIPPort, arg1 bool) (message.OutboundMessage, error)

PeerList mocks base method.

func (*OutboundMsgBuilder) Ping

Ping mocks base method.

func (*OutboundMsgBuilder) Pong

Pong mocks base method.

func (*OutboundMsgBuilder) PullQuery

func (m *OutboundMsgBuilder) PullQuery(arg0 ids.ID, arg1 uint32, arg2 time.Duration, arg3 ids.ID, arg4 uint64) (message.OutboundMessage, error)

PullQuery mocks base method.

func (*OutboundMsgBuilder) PushQuery

func (m *OutboundMsgBuilder) PushQuery(arg0 ids.ID, arg1 uint32, arg2 time.Duration, arg3 []byte, arg4 uint64) (message.OutboundMessage, error)

PushQuery mocks base method.

func (*OutboundMsgBuilder) Put

func (m *OutboundMsgBuilder) Put(arg0 ids.ID, arg1 uint32, arg2 []byte) (message.OutboundMessage, error)

Put mocks base method.

func (*OutboundMsgBuilder) StateSummaryFrontier

func (m *OutboundMsgBuilder) StateSummaryFrontier(arg0 ids.ID, arg1 uint32, arg2 []byte) (message.OutboundMessage, error)

StateSummaryFrontier mocks base method.

type OutboundMsgBuilderMockRecorder

type OutboundMsgBuilderMockRecorder struct {
	// contains filtered or unexported fields
}

OutboundMsgBuilderMockRecorder is the mock recorder for OutboundMsgBuilder.

func (*OutboundMsgBuilderMockRecorder) Accepted

func (mr *OutboundMsgBuilderMockRecorder) Accepted(arg0, arg1, arg2 any) *gomock.Call

Accepted indicates an expected call of Accepted.

func (*OutboundMsgBuilderMockRecorder) AcceptedFrontier

func (mr *OutboundMsgBuilderMockRecorder) AcceptedFrontier(arg0, arg1, arg2 any) *gomock.Call

AcceptedFrontier indicates an expected call of AcceptedFrontier.

func (*OutboundMsgBuilderMockRecorder) AcceptedStateSummary

func (mr *OutboundMsgBuilderMockRecorder) AcceptedStateSummary(arg0, arg1, arg2 any) *gomock.Call

AcceptedStateSummary indicates an expected call of AcceptedStateSummary.

func (*OutboundMsgBuilderMockRecorder) Ancestors

func (mr *OutboundMsgBuilderMockRecorder) Ancestors(arg0, arg1, arg2 any) *gomock.Call

Ancestors indicates an expected call of Ancestors.

func (*OutboundMsgBuilderMockRecorder) AppError

func (mr *OutboundMsgBuilderMockRecorder) AppError(arg0, arg1, arg2, arg3 any) *gomock.Call

AppError indicates an expected call of AppError.

func (*OutboundMsgBuilderMockRecorder) AppGossip

func (mr *OutboundMsgBuilderMockRecorder) AppGossip(arg0, arg1 any) *gomock.Call

AppGossip indicates an expected call of AppGossip.

func (*OutboundMsgBuilderMockRecorder) AppRequest

func (mr *OutboundMsgBuilderMockRecorder) AppRequest(arg0, arg1, arg2, arg3 any) *gomock.Call

AppRequest indicates an expected call of AppRequest.

func (*OutboundMsgBuilderMockRecorder) AppResponse

func (mr *OutboundMsgBuilderMockRecorder) AppResponse(arg0, arg1, arg2 any) *gomock.Call

AppResponse indicates an expected call of AppResponse.

func (*OutboundMsgBuilderMockRecorder) Chits

func (mr *OutboundMsgBuilderMockRecorder) Chits(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call

Chits indicates an expected call of Chits.

func (*OutboundMsgBuilderMockRecorder) Get

func (mr *OutboundMsgBuilderMockRecorder) Get(arg0, arg1, arg2, arg3 any) *gomock.Call

Get indicates an expected call of Get.

func (*OutboundMsgBuilderMockRecorder) GetAccepted

func (mr *OutboundMsgBuilderMockRecorder) GetAccepted(arg0, arg1, arg2, arg3 any) *gomock.Call

GetAccepted indicates an expected call of GetAccepted.

func (*OutboundMsgBuilderMockRecorder) GetAcceptedFrontier

func (mr *OutboundMsgBuilderMockRecorder) GetAcceptedFrontier(arg0, arg1, arg2 any) *gomock.Call

GetAcceptedFrontier indicates an expected call of GetAcceptedFrontier.

func (*OutboundMsgBuilderMockRecorder) GetAcceptedStateSummary

func (mr *OutboundMsgBuilderMockRecorder) GetAcceptedStateSummary(arg0, arg1, arg2, arg3 any) *gomock.Call

GetAcceptedStateSummary indicates an expected call of GetAcceptedStateSummary.

func (*OutboundMsgBuilderMockRecorder) GetAncestors

func (mr *OutboundMsgBuilderMockRecorder) GetAncestors(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call

GetAncestors indicates an expected call of GetAncestors.

func (*OutboundMsgBuilderMockRecorder) GetPeerList

func (mr *OutboundMsgBuilderMockRecorder) GetPeerList(arg0, arg1, arg2 any) *gomock.Call

GetPeerList indicates an expected call of GetPeerList.

func (*OutboundMsgBuilderMockRecorder) GetStateSummaryFrontier

func (mr *OutboundMsgBuilderMockRecorder) GetStateSummaryFrontier(arg0, arg1, arg2 any) *gomock.Call

GetStateSummaryFrontier indicates an expected call of GetStateSummaryFrontier.

func (*OutboundMsgBuilderMockRecorder) Handshake

func (mr *OutboundMsgBuilderMockRecorder) Handshake(arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13, arg14, arg15 any) *gomock.Call

Handshake indicates an expected call of Handshake.

func (*OutboundMsgBuilderMockRecorder) PeerList

func (mr *OutboundMsgBuilderMockRecorder) PeerList(arg0, arg1 any) *gomock.Call

PeerList indicates an expected call of PeerList.

func (*OutboundMsgBuilderMockRecorder) Ping

func (mr *OutboundMsgBuilderMockRecorder) Ping(arg0, arg1 any) *gomock.Call

Ping indicates an expected call of Ping.

func (*OutboundMsgBuilderMockRecorder) Pong

Pong indicates an expected call of Pong.

func (*OutboundMsgBuilderMockRecorder) PullQuery

func (mr *OutboundMsgBuilderMockRecorder) PullQuery(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call

PullQuery indicates an expected call of PullQuery.

func (*OutboundMsgBuilderMockRecorder) PushQuery

func (mr *OutboundMsgBuilderMockRecorder) PushQuery(arg0, arg1, arg2, arg3, arg4 any) *gomock.Call

PushQuery indicates an expected call of PushQuery.

func (*OutboundMsgBuilderMockRecorder) Put

func (mr *OutboundMsgBuilderMockRecorder) Put(arg0, arg1, arg2 any) *gomock.Call

Put indicates an expected call of Put.

func (*OutboundMsgBuilderMockRecorder) StateSummaryFrontier

func (mr *OutboundMsgBuilderMockRecorder) StateSummaryFrontier(arg0, arg1, arg2 any) *gomock.Call

StateSummaryFrontier indicates an expected call of StateSummaryFrontier.

Jump to

Keyboard shortcuts

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