requestf

package
v1.4.36 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 4, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package requestf comment This file was generated by ksf2go 1.1.7 Generated from RequestF.ksf

Index

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

func (st *RequestPacket) ReadBlock(readBuf *codec.Reader, tag byte, require bool) error

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

func (st *ResponsePacket) ReadBlock(readBuf *codec.Reader, tag byte, require bool) error

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL