Documentation
¶
Index ¶
- Constants
- Variables
- type C2S
- type Request
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetErrCode() int32
- func (x *Response) GetRetMsg() string
- func (x *Response) GetRetType() int32
- func (x *Response) GetS2C() *S2C
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
- type S2C
- func (*S2C) Descriptor() ([]byte, []int)deprecated
- func (x *S2C) GetConnID() uint64
- func (x *S2C) GetLocalTime() float64
- func (x *S2C) GetMarketHK() int32
- func (x *S2C) GetMarketHKFuture() int32
- func (x *S2C) GetMarketJPFuture() int32
- func (x *S2C) GetMarketSGFuture() int32
- func (x *S2C) GetMarketSH() int32
- func (x *S2C) GetMarketSZ() int32
- func (x *S2C) GetMarketUS() int32
- func (x *S2C) GetMarketUSFuture() int32
- func (x *S2C) GetProgramStatus() *common.ProgramStatus
- func (x *S2C) GetQotLogined() bool
- func (x *S2C) GetQotSvrIpAddr() string
- func (x *S2C) GetServerBuildNo() int32
- func (x *S2C) GetServerVer() int32
- func (x *S2C) GetTime() int64
- func (x *S2C) GetTrdLogined() bool
- func (x *S2C) GetTrdSvrIpAddr() string
- func (*S2C) ProtoMessage()
- func (x *S2C) ProtoReflect() protoreflect.Message
- func (x *S2C) Reset()
- func (x *S2C) String() string
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) ProtoMessage ¶
func (*C2S) ProtoMessage()
func (*C2S) ProtoReflect ¶
func (x *C2S) ProtoReflect() protoreflect.Message
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) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
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) GetErrCode ¶
func (*Response) GetRetType ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
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,美国期货市场状态
MarketSGFuture *int32 `protobuf:"varint,17,opt,name=marketSGFuture" json:"marketSGFuture,omitempty"` //Qot_Common.QotMarketState,新加坡期货市场状态
MarketJPFuture *int32 `protobuf:"varint,18,opt,name=marketJPFuture" json:"marketJPFuture,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) GetLocalTime ¶
func (*S2C) GetMarketHK ¶
func (*S2C) GetMarketHKFuture ¶
func (*S2C) GetMarketJPFuture ¶
func (*S2C) GetMarketSGFuture ¶
func (*S2C) GetMarketSH ¶
func (*S2C) GetMarketSZ ¶
func (*S2C) GetMarketUS ¶
func (*S2C) GetMarketUSFuture ¶
func (*S2C) GetProgramStatus ¶
func (x *S2C) GetProgramStatus() *common.ProgramStatus
func (*S2C) GetQotLogined ¶
func (*S2C) GetQotSvrIpAddr ¶
func (*S2C) GetServerBuildNo ¶
func (*S2C) GetServerVer ¶
func (*S2C) GetTrdLogined ¶
func (*S2C) GetTrdSvrIpAddr ¶
func (*S2C) ProtoMessage ¶
func (*S2C) ProtoMessage()
func (*S2C) ProtoReflect ¶
func (x *S2C) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.