Documentation ¶
Overview ¶
Package requestf comment This file war generated by tars2go 1.1 Generated from RequestF.tars
Package requestf comment This file war generated by tars2go 1.1 Generated from RequestF.tars
Index ¶
- type RequestPacket
- func (st *RequestPacket) AddMessageType(t int32)
- func (st *RequestPacket) HasMessageType(t int32) bool
- func (st *RequestPacket) ReadBlock(_is *codec.Reader, tag byte, require bool) error
- func (st *RequestPacket) ReadFrom(_is *codec.Reader) error
- func (st *RequestPacket) ResetDefault()
- func (st *RequestPacket) WriteBlock(_os *codec.Buffer, tag byte) error
- func (st *RequestPacket) WriteTo(_os *codec.Buffer) error
- type ResponsePacket
- func (st *ResponsePacket) ReadBlock(_is *codec.Reader, tag byte, require bool) error
- func (st *ResponsePacket) ReadFrom(_is *codec.Reader) error
- func (st *ResponsePacket) ResetDefault()
- func (st *ResponsePacket) WriteBlock(_os *codec.Buffer, tag byte) error
- func (st *ResponsePacket) WriteTo(_os *codec.Buffer) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestPacket ¶
type RequestPacket struct { IVersion int16 `json:"iVersion"` CPacketType int8 `json:"cPacketType"` IMessageType int32 `json:"iMessageType"` IRequestId int32 `json:"iRequestId"` SServantName string `json:"sServantName"` SFuncName string `json:"sFuncName"` SBuffer []int8 `json:"sBuffer"` ITimeout int32 `json:"iTimeout"` Context map[string]string `json:"context"` Status map[string]string `json:"status"` }
RequestPacket strcut implement
func (*RequestPacket) AddMessageType ¶
func (st *RequestPacket) AddMessageType(t int32)
AddMessageType add message type t to message
func (*RequestPacket) HasMessageType ¶
func (st *RequestPacket) HasMessageType(t int32) bool
HasMessageType check whether message contain type t
func (*RequestPacket) ReadFrom ¶
func (st *RequestPacket) ReadFrom(_is *codec.Reader) error
ReadFrom reads from _is and put into struct.
func (*RequestPacket) ResetDefault ¶
func (st *RequestPacket) ResetDefault()
func (*RequestPacket) WriteBlock ¶
func (st *RequestPacket) WriteBlock(_os *codec.Buffer, tag byte) error
WriteBlock encode struct
type ResponsePacket ¶
type ResponsePacket struct { IVersion int16 `json:"iVersion"` CPacketType int8 `json:"cPacketType"` IRequestId int32 `json:"iRequestId"` IMessageType int32 `json:"iMessageType"` IRet int32 `json:"iRet"` SBuffer []int8 `json:"sBuffer"` Status map[string]string `json:"status"` SResultDesc string `json:"sResultDesc"` Context map[string]string `json:"context"` }
ResponsePacket strcut implement
func (*ResponsePacket) ReadFrom ¶
func (st *ResponsePacket) ReadFrom(_is *codec.Reader) error
ReadFrom reads from _is and put into struct.
func (*ResponsePacket) ResetDefault ¶
func (st *ResponsePacket) ResetDefault()
func (*ResponsePacket) WriteBlock ¶
func (st *ResponsePacket) WriteBlock(_os *codec.Buffer, tag byte) error
WriteBlock encode struct
Click to show internal directories.
Click to hide internal directories.