Documentation ¶
Overview ¶
Package client is a generated GoMock package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockClient ¶
type MockClient struct {
// contains filtered or unexported fields
}
MockClient is a mock of Client interface
func NewMockClient ¶
func NewMockClient(ctrl *gomock.Controller) *MockClient
NewMockClient creates a new mock instance
func (*MockClient) EXPECT ¶
func (m *MockClient) EXPECT() *MockClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockClientMockRecorder ¶
type MockClientMockRecorder struct {
// contains filtered or unexported fields
}
MockClientMockRecorder is the mock recorder for MockClient
func (*MockClientMockRecorder) Addr ¶
func (mr *MockClientMockRecorder) Addr() *gomock.Call
Addr indicates an expected call of Addr
func (*MockClientMockRecorder) Close ¶
func (mr *MockClientMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockClientMockRecorder) Recv ¶
func (mr *MockClientMockRecorder) Recv() *gomock.Call
Recv indicates an expected call of Recv
func (*MockClientMockRecorder) Send ¶
func (mr *MockClientMockRecorder) Send(arg0 interface{}) *gomock.Call
Send indicates an expected call of Send
type Packet ¶
Packet encapulsates all messages on the wire
func (*Packet) DecodeBinary ¶
DecodeBinary decodes the packet from the binary format on the wire
type VarInt ¶
type VarInt int32
VarInt is a 32 bit integer with variable encoding
func (*VarInt) DecodeBinary ¶
DecodeBinary decodes a VarInt from its binary format
func (VarInt) EncodeBinary ¶
EncodeBinary encodes the VarInt in its binary format
type VarString ¶
type VarString string
VarString is a string prefixed with a VarInt
func (*VarString) DecodeBinary ¶
DecodeBinary decodes a VarString from its binary format
func (VarString) EncodeBinary ¶
EncodeBinary encodes the VarString in its binary format