Documentation
¶
Index ¶
- Constants
- Variables
- type HandshakeArgs
- func (z *HandshakeArgs) DecodeMsg(dc *msgp.Reader) (err error)
- func (z HandshakeArgs) EncodeMsg(en *msgp.Writer) (err error)
- func (z HandshakeArgs) MarshalMsg(b []byte) (o []byte, err error)
- func (z HandshakeArgs) Msgsize() (s int)
- func (z *HandshakeArgs) UnmarshalMsg(bts []byte) (o []byte, err error)
- type HandshakeCode
- func (z *HandshakeCode) DecodeMsg(dc *msgp.Reader) (err error)
- func (z HandshakeCode) EncodeMsg(en *msgp.Writer) (err error)
- func (z HandshakeCode) MarshalMsg(b []byte) (o []byte, err error)
- func (z HandshakeCode) Msgsize() (s int)
- func (z *HandshakeCode) UnmarshalMsg(bts []byte) (o []byte, err error)
- type HandshakeRet
- type InitStream
- type RPCCall
- type RPCCancel
- type RPCReturn
- type RPCType
- type StreamType
Constants ¶
const ( StreamTypeRaw = 0 StreamTypeAsyncCall = 1 StreamTypeCancelCalls = 2 )
const (
// The version of the application.
Version = 3
)
Variables ¶
var (
Codec = msgpack.Codec
)
Functions ¶
This section is empty.
Types ¶
type HandshakeArgs ¶ added in v0.2.0
type HandshakeArgs struct {
Version byte
}
func (*HandshakeArgs) DecodeMsg ¶ added in v0.2.0
func (z *HandshakeArgs) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (HandshakeArgs) EncodeMsg ¶ added in v0.2.0
func (z HandshakeArgs) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (HandshakeArgs) MarshalMsg ¶ added in v0.2.0
func (z HandshakeArgs) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (HandshakeArgs) Msgsize ¶ added in v0.2.0
func (z HandshakeArgs) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*HandshakeArgs) UnmarshalMsg ¶ added in v0.2.0
func (z *HandshakeArgs) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type HandshakeCode ¶ added in v0.2.0
type HandshakeCode int
const ( HSOk HandshakeCode = 0 HSInvalidVersion HandshakeCode = 1 )
func (*HandshakeCode) DecodeMsg ¶ added in v0.2.0
func (z *HandshakeCode) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (HandshakeCode) EncodeMsg ¶ added in v0.2.0
func (z HandshakeCode) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (HandshakeCode) MarshalMsg ¶ added in v0.2.0
func (z HandshakeCode) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (HandshakeCode) Msgsize ¶ added in v0.2.0
func (z HandshakeCode) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*HandshakeCode) UnmarshalMsg ¶ added in v0.2.0
func (z *HandshakeCode) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type HandshakeRet ¶ added in v0.2.0
type HandshakeRet struct {
Code HandshakeCode
SessionID string
}
func (*HandshakeRet) DecodeMsg ¶ added in v0.2.0
func (z *HandshakeRet) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (HandshakeRet) EncodeMsg ¶ added in v0.2.0
func (z HandshakeRet) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (HandshakeRet) MarshalMsg ¶ added in v0.2.0
func (z HandshakeRet) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (HandshakeRet) Msgsize ¶ added in v0.2.0
func (z HandshakeRet) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*HandshakeRet) UnmarshalMsg ¶ added in v0.2.0
func (z *HandshakeRet) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type InitStream ¶
type InitStream struct {
ID string
Type StreamType
Data map[string][]byte
}
func (*InitStream) DecodeMsg ¶
func (z *InitStream) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (*InitStream) EncodeMsg ¶
func (z *InitStream) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (*InitStream) MarshalMsg ¶
func (z *InitStream) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (*InitStream) Msgsize ¶
func (z *InitStream) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*InitStream) UnmarshalMsg ¶
func (z *InitStream) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler
type RPCCall ¶ added in v0.3.0
func (*RPCCall) MarshalMsg ¶ added in v0.3.0
MarshalMsg implements msgp.Marshaler
type RPCCancel ¶ added in v0.3.0
type RPCCancel struct {
Key uint32
}
func (RPCCancel) MarshalMsg ¶ added in v0.3.0
MarshalMsg implements msgp.Marshaler
type RPCReturn ¶ added in v0.3.0
func (RPCReturn) MarshalMsg ¶ added in v0.3.0
MarshalMsg implements msgp.Marshaler
type RPCType ¶ added in v0.3.0
type RPCType byte
func (RPCType) MarshalMsg ¶ added in v0.3.0
MarshalMsg implements msgp.Marshaler
type StreamType ¶ added in v0.2.0
type StreamType int
func (*StreamType) DecodeMsg ¶ added in v0.2.0
func (z *StreamType) DecodeMsg(dc *msgp.Reader) (err error)
DecodeMsg implements msgp.Decodable
func (StreamType) EncodeMsg ¶ added in v0.2.0
func (z StreamType) EncodeMsg(en *msgp.Writer) (err error)
EncodeMsg implements msgp.Encodable
func (StreamType) MarshalMsg ¶ added in v0.2.0
func (z StreamType) MarshalMsg(b []byte) (o []byte, err error)
MarshalMsg implements msgp.Marshaler
func (StreamType) Msgsize ¶ added in v0.2.0
func (z StreamType) Msgsize() (s int)
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
func (*StreamType) UnmarshalMsg ¶ added in v0.2.0
func (z *StreamType) UnmarshalMsg(bts []byte) (o []byte, err error)
UnmarshalMsg implements msgp.Unmarshaler