Documentation ¶
Overview ¶
Package requestf comment This file was generated by ksf2go 1.1.7 Generated from RequestF.ksf
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 ¶
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) ReadBlock ¶
ReadBlock reads struct from the given tag , require or optional.
func (*RequestPacket) ReadFrom ¶
func (st *RequestPacket) ReadFrom(readBuf *codec.Reader) error
ReadFrom reads from readBuf and put into struct.
func (*RequestPacket) ResetDefault ¶
func (st *RequestPacket) ResetDefault()
func (*RequestPacket) WriteBlock ¶
func (st *RequestPacket) WriteBlock(buf *codec.Buffer, tag byte) error
WriteBlock encode struct
func (*RequestPacket) WriteTo ¶
func (st *RequestPacket) WriteTo(buf *codec.Buffer) (err error)
WriteTo encode struct to buffer
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) ReadBlock ¶
ReadBlock reads struct from the given tag , require or optional.
func (*ResponsePacket) ReadFrom ¶
func (st *ResponsePacket) ReadFrom(readBuf *codec.Reader) error
ReadFrom reads from readBuf and put into struct.
func (*ResponsePacket) ResetDefault ¶
func (st *ResponsePacket) ResetDefault()
func (*ResponsePacket) WriteBlock ¶
func (st *ResponsePacket) WriteBlock(buf *codec.Buffer, tag byte) error
WriteBlock encode struct
func (*ResponsePacket) WriteTo ¶
func (st *ResponsePacket) WriteTo(buf *codec.Buffer) (err error)
WriteTo encode struct to buffer
Click to show internal directories.
Click to hide internal directories.