Documentation ¶
Overview ¶
Package requestf comment This file was generated by tars2go 1.1.10 Generated from RequestF.tars
Index ¶
- type RequestPacket
- func (st *RequestPacket) AddMessageType(t int32)
- func (st *RequestPacket) HasMessageType(t int32) bool
- func (st *RequestPacket) ReadBlock(readBuf *codec.Reader, tag byte, require bool) error
- func (st *RequestPacket) ReadFrom(readBuf *codec.Reader) error
- func (st *RequestPacket) ResetDefault()
- func (st *RequestPacket) WriteBlock(buf *codec.Buffer, tag byte) error
- func (st *RequestPacket) WriteTo(buf *codec.Buffer) (err error)
- type ResponsePacket
- func (st *ResponsePacket) ReadBlock(readBuf *codec.Reader, tag byte, require bool) error
- func (st *ResponsePacket) ReadFrom(readBuf *codec.Reader) error
- func (st *ResponsePacket) ResetDefault()
- func (st *ResponsePacket) WriteBlock(buf *codec.Buffer, tag byte) error
- func (st *ResponsePacket) WriteTo(buf *codec.Buffer) (err 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 struct implement
func (*RequestPacket) AddMessageType ¶ added in v1.1.2
func (st *RequestPacket) AddMessageType(t int32)
AddMessageType add message type t to message
func (*RequestPacket) HasMessageType ¶ added in v1.1.2
func (st *RequestPacket) HasMessageType(t int32) bool
HasMessageType check whether message contain type t
func (*RequestPacket) ReadFrom ¶
func (st *RequestPacket) ReadFrom(readBuf *codec.Reader) error
ReadFrom reads from readBuf and put into struct.
func (*RequestPacket) ResetDefault ¶ added in v1.1.2
func (st *RequestPacket) ResetDefault()
func (*RequestPacket) WriteBlock ¶
func (st *RequestPacket) WriteBlock(buf *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 struct implement
func (*ResponsePacket) ReadFrom ¶
func (st *ResponsePacket) ReadFrom(readBuf *codec.Reader) error
ReadFrom reads from readBuf and put into struct.
func (*ResponsePacket) ResetDefault ¶ added in v1.1.2
func (st *ResponsePacket) ResetDefault()
func (*ResponsePacket) WriteBlock ¶
func (st *ResponsePacket) WriteBlock(buf *codec.Buffer, tag byte) error
WriteBlock encode struct
Click to show internal directories.
Click to hide internal directories.