requestf

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2020 License: BSD-3-Clause Imports: 2 Imported by: 0

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

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) ReadBlock

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

ReadBlock reads struct from the given tag , require or optional.

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

func (*RequestPacket) WriteTo

func (st *RequestPacket) WriteTo(_os *codec.Buffer) 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 strcut implement

func (*ResponsePacket) ReadBlock

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

ReadBlock reads struct from the given tag , require or optional.

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

func (*ResponsePacket) WriteTo

func (st *ResponsePacket) WriteTo(_os *codec.Buffer) error

WriteTo encode struct to buffer

Jump to

Keyboard shortcuts

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