getglobalstate

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Default_Response_RetType = int32(-400)
)

Default values for Response fields.

Variables

View Source
var File_GetGlobalState_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type C2S

type C2S struct {
	UserID *uint64 `protobuf:"varint,1,req,name=userID" json:"userID,omitempty"` //历史原因,目前已废弃,填0即可
	// contains filtered or unexported fields
}

func (*C2S) Descriptor deprecated

func (*C2S) Descriptor() ([]byte, []int)

Deprecated: Use C2S.ProtoReflect.Descriptor instead.

func (*C2S) GetUserID

func (x *C2S) GetUserID() uint64

func (*C2S) ProtoMessage

func (*C2S) ProtoMessage()

func (*C2S) ProtoReflect

func (x *C2S) ProtoReflect() protoreflect.Message

func (*C2S) Reset

func (x *C2S) Reset()

func (*C2S) String

func (x *C2S) String() string

type Request

type Request struct {
	C2S *C2S `protobuf:"bytes,1,req,name=c2s" json:"c2s,omitempty"`
	// contains filtered or unexported fields
}

func (*Request) Descriptor deprecated

func (*Request) Descriptor() ([]byte, []int)

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetC2S

func (x *Request) GetC2S() *C2S

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

func (x *Request) ProtoReflect() protoreflect.Message

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type Response

type Response struct {
	RetType *int32  `protobuf:"varint,1,req,name=retType,def=-400" json:"retType,omitempty"` //RetType,返回结果
	RetMsg  *string `protobuf:"bytes,2,opt,name=retMsg" json:"retMsg,omitempty"`
	ErrCode *int32  `protobuf:"varint,3,opt,name=errCode" json:"errCode,omitempty"`
	S2C     *S2C    `protobuf:"bytes,4,opt,name=s2c" json:"s2c,omitempty"`
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

func (*Response) Descriptor() ([]byte, []int)

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetErrCode

func (x *Response) GetErrCode() int32

func (*Response) GetRetMsg

func (x *Response) GetRetMsg() string

func (*Response) GetRetType

func (x *Response) GetRetType() int32

func (*Response) GetS2C

func (x *Response) GetS2C() *S2C

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

func (x *Response) ProtoReflect() protoreflect.Message

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type ResponseChan

type ResponseChan chan *Response

func (ResponseChan) Close

func (ch ResponseChan) Close()

func (ResponseChan) Send

func (ch ResponseChan) Send(b []byte) error

type S2C

type S2C struct {
	MarketHK       *int32                `protobuf:"varint,1,req,name=marketHK" json:"marketHK,omitempty"`              //Qot_Common.QotMarketState,港股主板市场状态
	MarketUS       *int32                `protobuf:"varint,2,req,name=marketUS" json:"marketUS,omitempty"`              //Qot_Common.QotMarketState,美股Nasdaq市场状态
	MarketSH       *int32                `protobuf:"varint,3,req,name=marketSH" json:"marketSH,omitempty"`              //Qot_Common.QotMarketState,沪市状态
	MarketSZ       *int32                `protobuf:"varint,4,req,name=marketSZ" json:"marketSZ,omitempty"`              //Qot_Common.QotMarketState,深市状态
	MarketHKFuture *int32                `protobuf:"varint,5,req,name=marketHKFuture" json:"marketHKFuture,omitempty"`  //Qot_Common.QotMarketState,港股期货市场状态
	MarketUSFuture *int32                `protobuf:"varint,15,opt,name=marketUSFuture" json:"marketUSFuture,omitempty"` //Qot_Common.QotMarketState,美国期货市场状态
	QotLogined     *bool                 `protobuf:"varint,6,req,name=qotLogined" json:"qotLogined,omitempty"`          //是否登陆行情服务器
	TrdLogined     *bool                 `protobuf:"varint,7,req,name=trdLogined" json:"trdLogined,omitempty"`          //是否登陆交易服务器
	ServerVer      *int32                `protobuf:"varint,8,req,name=serverVer" json:"serverVer,omitempty"`            //版本号
	ServerBuildNo  *int32                `protobuf:"varint,9,req,name=serverBuildNo" json:"serverBuildNo,omitempty"`    //buildNo
	Time           *int64                `protobuf:"varint,10,req,name=time" json:"time,omitempty"`                     //当前服务器时间
	LocalTime      *float64              `protobuf:"fixed64,11,opt,name=localTime" json:"localTime,omitempty"`          //当前本地时间
	ProgramStatus  *common.ProgramStatus `protobuf:"bytes,12,opt,name=programStatus" json:"programStatus,omitempty"`    //当前程序状态
	QotSvrIpAddr   *string               `protobuf:"bytes,13,opt,name=qotSvrIpAddr" json:"qotSvrIpAddr,omitempty"`
	TrdSvrIpAddr   *string               `protobuf:"bytes,14,opt,name=trdSvrIpAddr" json:"trdSvrIpAddr,omitempty"`
	ConnID         *uint64               `protobuf:"varint,16,opt,name=connID" json:"connID,omitempty"` //此连接的连接ID,连接的唯一标识
	// contains filtered or unexported fields
}

func (*S2C) Descriptor deprecated

func (*S2C) Descriptor() ([]byte, []int)

Deprecated: Use S2C.ProtoReflect.Descriptor instead.

func (*S2C) GetConnID

func (x *S2C) GetConnID() uint64

func (*S2C) GetLocalTime

func (x *S2C) GetLocalTime() float64

func (*S2C) GetMarketHK

func (x *S2C) GetMarketHK() int32

func (*S2C) GetMarketHKFuture

func (x *S2C) GetMarketHKFuture() int32

func (*S2C) GetMarketSH

func (x *S2C) GetMarketSH() int32

func (*S2C) GetMarketSZ

func (x *S2C) GetMarketSZ() int32

func (*S2C) GetMarketUS

func (x *S2C) GetMarketUS() int32

func (*S2C) GetMarketUSFuture

func (x *S2C) GetMarketUSFuture() int32

func (*S2C) GetProgramStatus

func (x *S2C) GetProgramStatus() *common.ProgramStatus

func (*S2C) GetQotLogined

func (x *S2C) GetQotLogined() bool

func (*S2C) GetQotSvrIpAddr

func (x *S2C) GetQotSvrIpAddr() string

func (*S2C) GetServerBuildNo

func (x *S2C) GetServerBuildNo() int32

func (*S2C) GetServerVer

func (x *S2C) GetServerVer() int32

func (*S2C) GetTime

func (x *S2C) GetTime() int64

func (*S2C) GetTrdLogined

func (x *S2C) GetTrdLogined() bool

func (*S2C) GetTrdSvrIpAddr

func (x *S2C) GetTrdSvrIpAddr() string

func (*S2C) ProtoMessage

func (*S2C) ProtoMessage()

func (*S2C) ProtoReflect

func (x *S2C) ProtoReflect() protoreflect.Message

func (*S2C) Reset

func (x *S2C) Reset()

func (*S2C) String

func (x *S2C) String() string

Jump to

Keyboard shortcuts

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