Help us shape the future of Go! Take the 2026 Go Developer Survey

message

package
v0.16.4 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockMessage

type MockMessage struct {
	RPCInfoFunc         func() rpcinfo.RPCInfo
	DataFunc            func() interface{}
	NewDataFunc         func(method string) (ok bool)
	MessageTypeFunc     func() remote.MessageType
	SetMessageTypeFunc  func(remote.MessageType)
	RPCRoleFunc         func() remote.RPCRole
	PayloadLenFunc      func() int
	SetPayloadLenFunc   func(size int)
	TransInfoFunc       func() remote.TransInfo
	TagsFunc            func() map[string]interface{}
	PayloadCodecFunc    func() remote.PayloadCodec
	SetPayloadCodecFunc func(pc remote.PayloadCodec)
	RecycleFunc         func()
}

func (*MockMessage) Data

func (m *MockMessage) Data() interface{}

func (*MockMessage) MessageType

func (m *MockMessage) MessageType() (mt remote.MessageType)

func (*MockMessage) NewData

func (m *MockMessage) NewData(method string) (ok bool)

func (*MockMessage) PayloadCodec

func (m *MockMessage) PayloadCodec() remote.PayloadCodec

func (*MockMessage) PayloadLen

func (m *MockMessage) PayloadLen() int

func (*MockMessage) ProtocolInfo added in v0.15.2

func (m *MockMessage) ProtocolInfo() remote.ProtocolInfo

func (*MockMessage) RPCInfo

func (m *MockMessage) RPCInfo() rpcinfo.RPCInfo

func (*MockMessage) RPCRole

func (m *MockMessage) RPCRole() (r remote.RPCRole)

func (*MockMessage) Recycle

func (m *MockMessage) Recycle()

func (*MockMessage) SetMessageType

func (m *MockMessage) SetMessageType(mt remote.MessageType)

func (*MockMessage) SetPayloadCodec

func (m *MockMessage) SetPayloadCodec(pc remote.PayloadCodec)

func (*MockMessage) SetPayloadLen

func (m *MockMessage) SetPayloadLen(size int)

func (*MockMessage) Tags

func (m *MockMessage) Tags() map[string]interface{}

func (*MockMessage) TransInfo

func (m *MockMessage) TransInfo() remote.TransInfo

Jump to

Keyboard shortcuts

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