Documentation ¶
Index ¶
- Constants
- Variables
- type MarketStatus
- func (MarketStatus) Descriptor() protoreflect.EnumDescriptor
- func (x MarketStatus) Enum() *MarketStatus
- func (MarketStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x MarketStatus) Number() protoreflect.EnumNumber
- func (x MarketStatus) String() string
- func (MarketStatus) Type() protoreflect.EnumType
- func (x *MarketStatus) UnmarshalJSON(b []byte) errordeprecated
- 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 ResponseChan
- type S2C
- func (*S2C) Descriptor() ([]byte, []int)deprecated
- func (x *S2C) GetChangeRate() float64
- func (x *S2C) GetContent() string
- func (x *S2C) GetCurValue() float64
- func (x *S2C) GetKey() int64
- func (x *S2C) GetMarketStatus() int32
- func (x *S2C) GetNote() string
- func (x *S2C) GetPrice() float64
- func (x *S2C) GetSecurity() *qotcommon.Security
- func (x *S2C) GetSetValue() float64
- func (x *S2C) GetType() int32
- 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 ( MarketStatus_name = map[int32]string{ 0: "MarketStatus_Unknow", 1: "MarketStatus_Open", 2: "MarketStatus_USPre", 3: "MarketStatus_USAfter", } MarketStatus_value = map[string]int32{ "MarketStatus_Unknow": 0, "MarketStatus_Open": 1, "MarketStatus_USPre": 2, "MarketStatus_USAfter": 3, } )
Enum value maps for MarketStatus.
View Source
var File_Qot_UpdatePriceReminder_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type MarketStatus ¶
type MarketStatus int32
const ( MarketStatus_MarketStatus_Unknow MarketStatus = 0 MarketStatus_MarketStatus_Open MarketStatus = 1 // 盘中 MarketStatus_MarketStatus_USPre MarketStatus = 2 // 美股盘前 MarketStatus_MarketStatus_USAfter MarketStatus = 3 // 美股盘后 )
func (MarketStatus) Descriptor ¶
func (MarketStatus) Descriptor() protoreflect.EnumDescriptor
func (MarketStatus) Enum ¶
func (x MarketStatus) Enum() *MarketStatus
func (MarketStatus) EnumDescriptor
deprecated
func (MarketStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use MarketStatus.Descriptor instead.
func (MarketStatus) Number ¶
func (x MarketStatus) Number() protoreflect.EnumNumber
func (MarketStatus) String ¶
func (x MarketStatus) String() string
func (MarketStatus) Type ¶
func (MarketStatus) Type() protoreflect.EnumType
func (*MarketStatus) UnmarshalJSON
deprecated
func (x *MarketStatus) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
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 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 { Security *qotcommon.Security `protobuf:"bytes,1,req,name=security" json:"security,omitempty"` //股票 Price *float64 `protobuf:"fixed64,2,req,name=price" json:"price,omitempty"` //价格 ChangeRate *float64 `protobuf:"fixed64,3,req,name=changeRate" json:"changeRate,omitempty"` //涨跌幅 MarketStatus *int32 `protobuf:"varint,4,req,name=marketStatus" json:"marketStatus,omitempty"` //市场状态 Content *string `protobuf:"bytes,5,req,name=content" json:"content,omitempty"` //内容 Note *string `protobuf:"bytes,6,req,name=note" json:"note,omitempty"` //备注 Key *int64 `protobuf:"varint,7,opt,name=key" json:"key,omitempty"` // 到价提醒的标识 Type *int32 `protobuf:"varint,8,opt,name=type" json:"type,omitempty"` // Qot_Common::PriceReminderType,提醒类型 SetValue *float64 `protobuf:"fixed64,9,opt,name=setValue" json:"setValue,omitempty"` // 设置的提醒值 CurValue *float64 `protobuf:"fixed64,10,opt,name=curValue" json:"curValue,omitempty"` // 设置的提醒类型触发时当前值 // contains filtered or unexported fields }
func (*S2C) Descriptor
deprecated
func (*S2C) GetChangeRate ¶
func (*S2C) GetContent ¶
func (*S2C) GetCurValue ¶
func (*S2C) GetMarketStatus ¶
func (*S2C) GetSecurity ¶
func (*S2C) GetSetValue ¶
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.