GetDelayStatistics

package
v0.0.0-...-1a60310 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package GetDelayStatistics is a generated protocol buffer package.

It is generated from these files:

GetDelayStatistics.proto

It has these top-level messages:

C2S
DelayStatisticsItem
DelayStatistics
ReqReplyStatisticsItem
PlaceOrderStatisticsItem
S2C
Request
Response

Index

Constants

View Source
const Default_Response_RetType int32 = -400

Variables

View Source
var DelayStatisticsType_name = map[int32]string{
	0: "DelayStatisticsType_Unkonw",
	1: "DelayStatisticsType_QotPush",
	2: "DelayStatisticsType_ReqReply",
	3: "DelayStatisticsType_PlaceOrder",
}
View Source
var DelayStatisticsType_value = map[string]int32{
	"DelayStatisticsType_Unkonw":     0,
	"DelayStatisticsType_QotPush":    1,
	"DelayStatisticsType_ReqReply":   2,
	"DelayStatisticsType_PlaceOrder": 3,
}
View Source
var QotPushStage_name = map[int32]string{
	0: "QotPushStage_Unkonw",
	1: "QotPushStage_SR2SS",
	2: "QotPushStage_SS2CR",
	3: "QotPushStage_CR2CS",
	4: "QotPushStage_SS2CS",
	5: "QotPushStage_SR2CS",
}
View Source
var QotPushStage_value = map[string]int32{
	"QotPushStage_Unkonw": 0,
	"QotPushStage_SR2SS":  1,
	"QotPushStage_SS2CR":  2,
	"QotPushStage_CR2CS":  3,
	"QotPushStage_SS2CS":  4,
	"QotPushStage_SR2CS":  5,
}
View Source
var QotPushType_name = map[int32]string{
	0: "QotPushType_Unkonw",
	1: "QotPushType_Price",
	2: "QotPushType_Ticker",
	3: "QotPushType_OrderBook",
	4: "QotPushType_Broker",
}
View Source
var QotPushType_value = map[string]int32{
	"QotPushType_Unkonw":    0,
	"QotPushType_Price":     1,
	"QotPushType_Ticker":    2,
	"QotPushType_OrderBook": 3,
	"QotPushType_Broker":    4,
}

Functions

This section is empty.

Types

type C2S

type C2S struct {
	TypeList         []int32 `protobuf:"varint,1,rep,name=typeList" json:"typeList,omitempty"`
	QotPushStage     *int32  `protobuf:"varint,2,opt,name=qotPushStage" json:"qotPushStage,omitempty"`
	SegmentList      []int32 `protobuf:"varint,3,rep,name=segmentList" json:"segmentList,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*C2S) Descriptor

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

func (*C2S) GetQotPushStage

func (m *C2S) GetQotPushStage() int32

func (*C2S) GetSegmentList

func (m *C2S) GetSegmentList() []int32

func (*C2S) GetTypeList

func (m *C2S) GetTypeList() []int32

func (*C2S) ProtoMessage

func (*C2S) ProtoMessage()

func (*C2S) Reset

func (m *C2S) Reset()

func (*C2S) String

func (m *C2S) String() string

type DelayStatistics

type DelayStatistics struct {
	QotPushType      *int32                 `protobuf:"varint,1,req,name=qotPushType" json:"qotPushType,omitempty"`
	ItemList         []*DelayStatisticsItem `protobuf:"bytes,2,rep,name=itemList" json:"itemList,omitempty"`
	DelayAvg         *float32               `protobuf:"fixed32,3,req,name=delayAvg" json:"delayAvg,omitempty"`
	Count            *int32                 `protobuf:"varint,4,req,name=count" json:"count,omitempty"`
	XXX_unrecognized []byte                 `json:"-"`
}

func (*DelayStatistics) Descriptor

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

func (*DelayStatistics) GetCount

func (m *DelayStatistics) GetCount() int32

func (*DelayStatistics) GetDelayAvg

func (m *DelayStatistics) GetDelayAvg() float32

func (*DelayStatistics) GetItemList

func (m *DelayStatistics) GetItemList() []*DelayStatisticsItem

func (*DelayStatistics) GetQotPushType

func (m *DelayStatistics) GetQotPushType() int32

func (*DelayStatistics) ProtoMessage

func (*DelayStatistics) ProtoMessage()

func (*DelayStatistics) Reset

func (m *DelayStatistics) Reset()

func (*DelayStatistics) String

func (m *DelayStatistics) String() string

type DelayStatisticsItem

type DelayStatisticsItem struct {
	// 范围左闭右开,[begin,end)
	Begin            *int32   `protobuf:"varint,1,req,name=begin" json:"begin,omitempty"`
	End              *int32   `protobuf:"varint,2,req,name=end" json:"end,omitempty"`
	Count            *int32   `protobuf:"varint,3,req,name=count" json:"count,omitempty"`
	Proportion       *float32 `protobuf:"fixed32,4,req,name=proportion" json:"proportion,omitempty"`
	CumulativeRatio  *float32 `protobuf:"fixed32,5,req,name=cumulativeRatio" json:"cumulativeRatio,omitempty"`
	XXX_unrecognized []byte   `json:"-"`
}

func (*DelayStatisticsItem) Descriptor

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

func (*DelayStatisticsItem) GetBegin

func (m *DelayStatisticsItem) GetBegin() int32

func (*DelayStatisticsItem) GetCount

func (m *DelayStatisticsItem) GetCount() int32

func (*DelayStatisticsItem) GetCumulativeRatio

func (m *DelayStatisticsItem) GetCumulativeRatio() float32

func (*DelayStatisticsItem) GetEnd

func (m *DelayStatisticsItem) GetEnd() int32

func (*DelayStatisticsItem) GetProportion

func (m *DelayStatisticsItem) GetProportion() float32

func (*DelayStatisticsItem) ProtoMessage

func (*DelayStatisticsItem) ProtoMessage()

func (*DelayStatisticsItem) Reset

func (m *DelayStatisticsItem) Reset()

func (*DelayStatisticsItem) String

func (m *DelayStatisticsItem) String() string

type DelayStatisticsType

type DelayStatisticsType int32
const (
	DelayStatisticsType_DelayStatisticsType_Unkonw     DelayStatisticsType = 0
	DelayStatisticsType_DelayStatisticsType_QotPush    DelayStatisticsType = 1
	DelayStatisticsType_DelayStatisticsType_ReqReply   DelayStatisticsType = 2
	DelayStatisticsType_DelayStatisticsType_PlaceOrder DelayStatisticsType = 3
)

func (DelayStatisticsType) Enum

func (DelayStatisticsType) EnumDescriptor

func (DelayStatisticsType) EnumDescriptor() ([]byte, []int)

func (DelayStatisticsType) String

func (x DelayStatisticsType) String() string

func (*DelayStatisticsType) UnmarshalJSON

func (x *DelayStatisticsType) UnmarshalJSON(data []byte) error

type PlaceOrderStatisticsItem

type PlaceOrderStatisticsItem struct {
	OrderID          *string  `protobuf:"bytes,1,req,name=orderID" json:"orderID,omitempty"`
	TotalCost        *float32 `protobuf:"fixed32,2,req,name=totalCost" json:"totalCost,omitempty"`
	OpenDCost        *float32 `protobuf:"fixed32,3,req,name=openDCost" json:"openDCost,omitempty"`
	NetDelay         *float32 `protobuf:"fixed32,4,req,name=netDelay" json:"netDelay,omitempty"`
	UpdateCost       *float32 `protobuf:"fixed32,5,req,name=updateCost" json:"updateCost,omitempty"`
	XXX_unrecognized []byte   `json:"-"`
}

func (*PlaceOrderStatisticsItem) Descriptor

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

func (*PlaceOrderStatisticsItem) GetNetDelay

func (m *PlaceOrderStatisticsItem) GetNetDelay() float32

func (*PlaceOrderStatisticsItem) GetOpenDCost

func (m *PlaceOrderStatisticsItem) GetOpenDCost() float32

func (*PlaceOrderStatisticsItem) GetOrderID

func (m *PlaceOrderStatisticsItem) GetOrderID() string

func (*PlaceOrderStatisticsItem) GetTotalCost

func (m *PlaceOrderStatisticsItem) GetTotalCost() float32

func (*PlaceOrderStatisticsItem) GetUpdateCost

func (m *PlaceOrderStatisticsItem) GetUpdateCost() float32

func (*PlaceOrderStatisticsItem) ProtoMessage

func (*PlaceOrderStatisticsItem) ProtoMessage()

func (*PlaceOrderStatisticsItem) Reset

func (m *PlaceOrderStatisticsItem) Reset()

func (*PlaceOrderStatisticsItem) String

func (m *PlaceOrderStatisticsItem) String() string

type QotPushStage

type QotPushStage int32

某段时间的统计数据 SR表示服务器收到数据,目前只有港股支持SR字段,SS表示服务器发出数据 CR表示OpenD收到数据,CS表示OpenD发出数据

const (
	QotPushStage_QotPushStage_Unkonw QotPushStage = 0
	QotPushStage_QotPushStage_SR2SS  QotPushStage = 1
	QotPushStage_QotPushStage_SS2CR  QotPushStage = 2
	QotPushStage_QotPushStage_CR2CS  QotPushStage = 3
	QotPushStage_QotPushStage_SS2CS  QotPushStage = 4
	QotPushStage_QotPushStage_SR2CS  QotPushStage = 5
)

func (QotPushStage) Enum

func (x QotPushStage) Enum() *QotPushStage

func (QotPushStage) EnumDescriptor

func (QotPushStage) EnumDescriptor() ([]byte, []int)

func (QotPushStage) String

func (x QotPushStage) String() string

func (*QotPushStage) UnmarshalJSON

func (x *QotPushStage) UnmarshalJSON(data []byte) error

type QotPushType

type QotPushType int32

行情推送类型

const (
	QotPushType_QotPushType_Unkonw    QotPushType = 0
	QotPushType_QotPushType_Price     QotPushType = 1
	QotPushType_QotPushType_Ticker    QotPushType = 2
	QotPushType_QotPushType_OrderBook QotPushType = 3
	QotPushType_QotPushType_Broker    QotPushType = 4
)

func (QotPushType) Enum

func (x QotPushType) Enum() *QotPushType

func (QotPushType) EnumDescriptor

func (QotPushType) EnumDescriptor() ([]byte, []int)

func (QotPushType) String

func (x QotPushType) String() string

func (*QotPushType) UnmarshalJSON

func (x *QotPushType) UnmarshalJSON(data []byte) error

type ReqReplyStatisticsItem

type ReqReplyStatisticsItem struct {
	ProtoID          *int32   `protobuf:"varint,1,req,name=protoID" json:"protoID,omitempty"`
	Count            *int32   `protobuf:"varint,2,req,name=count" json:"count,omitempty"`
	TotalCostAvg     *float32 `protobuf:"fixed32,3,req,name=totalCostAvg" json:"totalCostAvg,omitempty"`
	OpenDCostAvg     *float32 `protobuf:"fixed32,4,req,name=openDCostAvg" json:"openDCostAvg,omitempty"`
	NetDelayAvg      *float32 `protobuf:"fixed32,5,req,name=netDelayAvg" json:"netDelayAvg,omitempty"`
	IsLocalReply     *bool    `protobuf:"varint,6,req,name=isLocalReply" json:"isLocalReply,omitempty"`
	XXX_unrecognized []byte   `json:"-"`
}

func (*ReqReplyStatisticsItem) Descriptor

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

func (*ReqReplyStatisticsItem) GetCount

func (m *ReqReplyStatisticsItem) GetCount() int32

func (*ReqReplyStatisticsItem) GetIsLocalReply

func (m *ReqReplyStatisticsItem) GetIsLocalReply() bool

func (*ReqReplyStatisticsItem) GetNetDelayAvg

func (m *ReqReplyStatisticsItem) GetNetDelayAvg() float32

func (*ReqReplyStatisticsItem) GetOpenDCostAvg

func (m *ReqReplyStatisticsItem) GetOpenDCostAvg() float32

func (*ReqReplyStatisticsItem) GetProtoID

func (m *ReqReplyStatisticsItem) GetProtoID() int32

func (*ReqReplyStatisticsItem) GetTotalCostAvg

func (m *ReqReplyStatisticsItem) GetTotalCostAvg() float32

func (*ReqReplyStatisticsItem) ProtoMessage

func (*ReqReplyStatisticsItem) ProtoMessage()

func (*ReqReplyStatisticsItem) Reset

func (m *ReqReplyStatisticsItem) Reset()

func (*ReqReplyStatisticsItem) String

func (m *ReqReplyStatisticsItem) String() string

type Request

type Request struct {
	C2S              *C2S   `protobuf:"bytes,1,req,name=c2s" json:"c2s,omitempty"`
	XXX_unrecognized []byte `json:"-"`
}

func (*Request) Descriptor

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

func (*Request) GetC2S

func (m *Request) GetC2S() *C2S

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) String

func (m *Request) String() string

type Response

type Response struct {
	RetType          *int32  `protobuf:"varint,1,req,name=retType,def=-400" json:"retType,omitempty"`
	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"`
	XXX_unrecognized []byte  `json:"-"`
}

func (*Response) Descriptor

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

func (*Response) GetErrCode

func (m *Response) GetErrCode() int32

func (*Response) GetRetMsg

func (m *Response) GetRetMsg() string

func (*Response) GetRetType

func (m *Response) GetRetType() int32

func (*Response) GetS2C

func (m *Response) GetS2C() *S2C

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) Reset

func (m *Response) Reset()

func (*Response) String

func (m *Response) String() string

type S2C

type S2C struct {
	QotPushStatisticsList    []*DelayStatistics          `protobuf:"bytes,1,rep,name=qotPushStatisticsList" json:"qotPushStatisticsList,omitempty"`
	ReqReplyStatisticsList   []*ReqReplyStatisticsItem   `protobuf:"bytes,2,rep,name=reqReplyStatisticsList" json:"reqReplyStatisticsList,omitempty"`
	PlaceOrderStatisticsList []*PlaceOrderStatisticsItem `protobuf:"bytes,3,rep,name=placeOrderStatisticsList" json:"placeOrderStatisticsList,omitempty"`
	XXX_unrecognized         []byte                      `json:"-"`
}

func (*S2C) Descriptor

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

func (*S2C) GetPlaceOrderStatisticsList

func (m *S2C) GetPlaceOrderStatisticsList() []*PlaceOrderStatisticsItem

func (*S2C) GetQotPushStatisticsList

func (m *S2C) GetQotPushStatisticsList() []*DelayStatistics

func (*S2C) GetReqReplyStatisticsList

func (m *S2C) GetReqReplyStatisticsList() []*ReqReplyStatisticsItem

func (*S2C) ProtoMessage

func (*S2C) ProtoMessage()

func (*S2C) Reset

func (m *S2C) Reset()

func (*S2C) String

func (m *S2C) String() string

Jump to

Keyboard shortcuts

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