adapt

package
v0.0.0-...-9bf734b Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: Apache-2.0 Imports: 75 Imported by: 0

Documentation

Index

Constants

View Source
const (
	//默认的ClientID, 用于区分不同的api
	DEFULAT_CLIENT_ID = "GoByIcehu"
	CLIENT_VERSION    = 300
)
View Source
const (
	RetType_Succeed    = 0    //成功
	RetType_Failed     = -1   //失败
	RetType_TimeOut    = -100 //超时
	RetType_DisConnect = -200 //连接断开
	RetType_Unknown    = -400 //未知结果
	RetType_Invalid    = -500 //包内容非法
)
View Source
const (
	MARKET_NONE      = "N/A"       //未知市场
	MARKET_HK        = "HK"        //香港市场
	MARKET_US        = "US"        //美国市场
	MARKET_SH        = "SH"        //沪股市场
	MARKET_SZ        = "SZ"        //深股市场
	MARKET_HK_FUTURE = "HK_FUTURE" //港期货(已废弃,使用QotMarket_HK_Security即可)
	MARKET_SG        = "SG"        //新加坡市场
	MARKET_JP        = "JP"        //日本市场
)

交易所前缀对应关系表

View Source
const (
	ProtoID_InitConnect        = 1001 // 初始化连接
	ProtoID_GetGlobalState     = 1002 // 获取全局状态
	ProtoID_Notify             = 1003 // 通知推送
	ProtoID_KeepAlive          = 1004 // 心跳保活
	ProtoID_GetUserInfo        = 1005 // 获取用户信息
	ProtoID_Verification       = 1006 // 请求或输入验证码
	ProtoID_GetDelayStatistics = 1007 // 获取延迟统计
	ProtoID_TestCmd            = 1008 // futu-go已支持,没有文档,不知道能输入什么返回什么
	ProtoID_InitQuantMode      = 1009 // 不支持,不知道干嘛的,也没有看到proto文件

	ProtoID_Trd_GetAccList  = 2001 // 获取业务账户列表
	ProtoID_Trd_UnlockTrade = 2005 // 解锁或锁定交易
	ProtoID_Trd_SubAccPush  = 2008 // 订阅业务账户的交易推送数据

	ProtoID_Trd_GetFunds        = 2101 // 获取账户资金
	ProtoID_Trd_GetPositionList = 2102 // 获取账户持仓

	ProtoID_Trd_GetOrderList = 2201 // 获取订单列表
	ProtoID_Trd_PlaceOrder   = 2202 // 下单
	ProtoID_Trd_ModifyOrder  = 2205 // 修改订单
	ProtoID_Trd_UpdateOrder  = 2208 // 订单状态变动通知(推送)

	ProtoID_Trd_GetOrderFillList = 2211 // 获取成交列表
	ProtoID_Trd_UpdateOrderFill  = 2218 // 成交通知(推送)

	ProtoID_Trd_GetHistoryOrderList     = 2221 // 获取历史订单列表
	ProtoID_Trd_GetHistoryOrderFillList = 2222 // 获取历史成交列表
	ProtoID_Trd_GetMaxTrdQtys           = 2111 // 查询最大买卖数量
	ProtoID_Trd_GetMarginRatio          = 2223 // 获取融资融券数据

	// 订阅数据
	ProtoID_Qot_Sub                 = 3001 // 订阅或者反订阅
	ProtoID_Qot_RegQotPush          = 3002 // 注册推送
	ProtoID_Qot_GetSubInfo          = 3003 // 获取订阅信息
	ProtoID_Qot_GetBasicQot         = 3004 // 获取股票基本行情
	ProtoID_Qot_UpdateBasicQot      = 3005 // 推送股票基本行情
	ProtoID_Qot_GetKL               = 3006 // 获取K线
	ProtoID_Qot_UpdateKL            = 3007 // 推送K线
	ProtoID_Qot_GetRT               = 3008 // 获取分时
	ProtoID_Qot_UpdateRT            = 3009 // 推送分时
	ProtoID_Qot_GetTicker           = 3010 // 获取逐笔
	ProtoID_Qot_UpdateTicker        = 3011 // 推送逐笔
	ProtoID_Qot_GetOrderBook        = 3012 // 获取买卖盘
	ProtoID_Qot_UpdateOrderBook     = 3013 // 推送买卖盘
	ProtoID_Qot_GetBroker           = 3014 // 获取经纪队列
	ProtoID_Qot_UpdateBroker        = 3015 // 推送经纪队列
	ProtoID_Qot_UpdatePriceReminder = 3019 //到价提醒通知

	// 历史数据
	ProtoID_Qot_RequestHistoryKL      = 3103 // 拉取历史K线
	ProtoID_Qot_RequestHistoryKLQuota = 3104 // 拉取历史K线已经用掉的额度
	ProtoID_Qot_RequestRehab          = 3105 // 获取除权信息

	// 其他行情数据
	ProtoID_Qot_GetSuspend           = 3201 // 获取股票停牌信息
	ProtoID_Qot_GetStaticInfo        = 3202 // 获取股票列表
	ProtoID_Qot_GetSecuritySnapshot  = 3203 // 获取股票快照
	ProtoID_Qot_GetPlateSet          = 3204 // 获取板块集合下的板块
	ProtoID_Qot_GetPlateSecurity     = 3205 // 获取板块下的股票
	ProtoID_Qot_GetReference         = 3206 // 获取正股相关股票,暂时只有窝轮
	ProtoID_Qot_GetOwnerPlate        = 3207 // 获取股票所属板块
	ProtoID_Qot_GetHoldingChangeList = 3208 // 获取高管持股变动
	ProtoID_Qot_GetOptionChain       = 3209 // 获取期权链

	ProtoID_Qot_GetWarrant             = 3210 // 拉取窝轮信息
	ProtoID_Qot_GetCapitalFlow         = 3211 // 获取资金流向
	ProtoID_Qot_GetCapitalDistribution = 3212 // 获取资金分布

	ProtoID_Qot_GetUserSecurity    = 3213 // 获取自选股分组下的股票
	ProtoID_Qot_ModifyUserSecurity = 3214 // 修改自选股分组下的股票
	ProtoID_Qot_StockFilter        = 3215 // 条件选股
	ProtoID_Qot_GetCodeChange      = 3216 // 代码变换
	ProtoID_Qot_GetIpoList         = 3217 // 获取新股Ipo
	ProtoID_Qot_GetFutureInfo      = 3218 // 获取期货资料
	ProtoID_Qot_RequestTradeDate   = 3219 // 在线拉取交易日
	ProtoID_Qot_SetPriceReminder   = 3220 // 设置到价提醒
	ProtoID_Qot_GetPriceReminder   = 3221 // 获取到价提醒

	ProtoID_Qot_GetUserSecurityGroup    = 3222 // 获取自选股分组
	ProtoID_Qot_GetMarketState          = 3223 // 获取指定品种的市场状态
	ProtoID_Qot_GetOptionExpirationDate = 3224 // 获取期权到期日

	ProtoID_Example_Adapt = 111111111 //just a tag fix Example template
)
View Source
const HEADER_LENGTH = 44

Variables

View Source
var (
	Market_Value = map[string]int32{
		MARKET_NONE: int32(qotcommon.QotMarket_QotMarket_Unknown),
		MARKET_HK:   int32(qotcommon.QotMarket_QotMarket_HK_Security),
		MARKET_US:   int32(qotcommon.QotMarket_QotMarket_US_Security),
		MARKET_SH:   int32(qotcommon.QotMarket_QotMarket_CNSH_Security),
		MARKET_SZ:   int32(qotcommon.QotMarket_QotMarket_CNSZ_Security),
		MARKET_SG:   int32(qotcommon.QotMarket_QotMarket_SG_Security),
		MARKET_JP:   int32(qotcommon.QotMarket_QotMarket_JP_Security),
	}

	Market_Name = map[int32]string{
		int32(qotcommon.QotMarket_QotMarket_Unknown):       MARKET_NONE,
		int32(qotcommon.QotMarket_QotMarket_HK_Security):   MARKET_HK,
		int32(qotcommon.QotMarket_QotMarket_US_Security):   MARKET_US,
		int32(qotcommon.QotMarket_QotMarket_CNSH_Security): MARKET_SH,
		int32(qotcommon.QotMarket_QotMarket_CNSZ_Security): MARKET_SZ,
		int32(qotcommon.QotMarket_QotMarket_SG_Security):   MARKET_SG,
		int32(qotcommon.QotMarket_QotMarket_JP_Security):   MARKET_JP,
	}

	SecMarket_Value = map[string]int32{
		MARKET_NONE: int32(trdcommon.TrdSecMarket_TrdSecMarket_Unknown),
		MARKET_HK:   int32(trdcommon.TrdSecMarket_TrdSecMarket_HK),
		MARKET_US:   int32(trdcommon.TrdSecMarket_TrdSecMarket_US),
		MARKET_SH:   int32(trdcommon.TrdSecMarket_TrdSecMarket_CN_SH),
		MARKET_SZ:   int32(trdcommon.TrdSecMarket_TrdSecMarket_CN_SZ),
		MARKET_SG:   int32(trdcommon.TrdSecMarket_TrdSecMarket_SG),
		MARKET_JP:   int32(trdcommon.TrdSecMarket_TrdSecMarket_JP),
	}

	SecMarket_Name = map[int32]string{
		int32(trdcommon.TrdSecMarket_TrdSecMarket_Unknown): MARKET_NONE,
		int32(trdcommon.TrdSecMarket_TrdSecMarket_HK):      MARKET_HK,
		int32(trdcommon.TrdSecMarket_TrdSecMarket_US):      MARKET_US,
		int32(trdcommon.TrdSecMarket_TrdSecMarket_CN_SH):   MARKET_SH,
		int32(trdcommon.TrdSecMarket_TrdSecMarket_CN_SZ):   MARKET_SZ,
		int32(trdcommon.TrdSecMarket_TrdSecMarket_SG):      MARKET_SG,
		int32(trdcommon.TrdSecMarket_TrdSecMarket_JP):      MARKET_JP,
	}
)
View Source
var DataAdaptMap = map[uint32]interface{}{

	ProtoID_InitConnect:        CreateInitConnect,
	ProtoID_GetGlobalState:     CreateGetGlobalState,
	ProtoID_Notify:             CreateNotify,
	ProtoID_KeepAlive:          CreateKeepAlive,
	ProtoID_GetUserInfo:        CreateGetUserInfo,
	ProtoID_Verification:       CreateVerification,
	ProtoID_GetDelayStatistics: CreateGetDelayStatistics,
	ProtoID_TestCmd:            CreateTestCmd,

	ProtoID_Trd_GetAccList:              CreateTrdGetAccList,
	ProtoID_Trd_UnlockTrade:             CreateTrdUnlockTrade,
	ProtoID_Trd_SubAccPush:              CreateTrdSubAccPush,
	ProtoID_Trd_GetFunds:                CreateTrdGetFunds,
	ProtoID_Trd_GetPositionList:         CreateTrdGetPositionList,
	ProtoID_Trd_GetOrderList:            CreateTrdGetOrderList,
	ProtoID_Trd_PlaceOrder:              CreateTrdPlaceOrder,
	ProtoID_Trd_ModifyOrder:             CreateTrdModifyOrder,
	ProtoID_Trd_UpdateOrder:             CreateTrdUpdateOrder,
	ProtoID_Trd_GetOrderFillList:        CreateTrdGetOrderFillList,
	ProtoID_Trd_UpdateOrderFill:         CreateTrdUpdateOrderFill,
	ProtoID_Trd_GetHistoryOrderList:     CreateTrdGetHistoryOrderList,
	ProtoID_Trd_GetHistoryOrderFillList: CreateTrdGetHistoryOrderFillList,
	ProtoID_Trd_GetMaxTrdQtys:           CreateTrdGetMaxTrdQtys,
	ProtoID_Trd_GetMarginRatio:          CreateTrdGetMarginRatio,

	ProtoID_Qot_Sub:                   CreateQotSub,
	ProtoID_Qot_RegQotPush:            CreateQotRegQotPush,
	ProtoID_Qot_GetSubInfo:            CreateQotGetSubInfo,
	ProtoID_Qot_GetBasicQot:           CreateQotGetBasicQot,
	ProtoID_Qot_UpdateBasicQot:        CreateQotUpdateBasicQot,
	ProtoID_Qot_GetKL:                 CreateQotGetKL,
	ProtoID_Qot_UpdateKL:              CreateQotUpdateKL,
	ProtoID_Qot_GetRT:                 CreateQotGetRT,
	ProtoID_Qot_UpdateRT:              CreateQotUpdateRT,
	ProtoID_Qot_GetTicker:             CreateQotGetTicker,
	ProtoID_Qot_UpdateTicker:          CreateQotUpdateTicker,
	ProtoID_Qot_GetOrderBook:          CreateQotGetOrderBook,
	ProtoID_Qot_UpdateOrderBook:       CreateQotUpdateOrderBook,
	ProtoID_Qot_GetBroker:             CreateQotGetBroker,
	ProtoID_Qot_UpdateBroker:          CreateQotUpdateBroker,
	ProtoID_Qot_UpdatePriceReminder:   CreateQotUpdatePriceReminder,
	ProtoID_Qot_RequestHistoryKL:      CreateQotRequestHistoryKL,
	ProtoID_Qot_RequestHistoryKLQuota: CreateQotRequestHistoryKLQuota,
	ProtoID_Qot_RequestRehab:          CreateQotRequestRehab,

	ProtoID_Qot_GetSuspend:              CreateQotGetSuspend,
	ProtoID_Qot_GetStaticInfo:           CreateQotGetStaticInfo,
	ProtoID_Qot_GetSecuritySnapshot:     CreateQotGetSecuritySnapshot,
	ProtoID_Qot_GetPlateSet:             CreateQotGetPlateSet,
	ProtoID_Qot_GetPlateSecurity:        CreateQotGetPlateSecurity,
	ProtoID_Qot_GetReference:            CreateQotGetReference,
	ProtoID_Qot_GetOwnerPlate:           CreateQotGetOwnerPlate,
	ProtoID_Qot_GetHoldingChangeList:    CreateQotGetHoldingChangeList,
	ProtoID_Qot_GetOptionChain:          CreateQotGetOptionChain,
	ProtoID_Qot_GetWarrant:              CreateQotGetWarrant,
	ProtoID_Qot_GetCapitalFlow:          CreateQotGetCapitalFlow,
	ProtoID_Qot_GetCapitalDistribution:  CreateQotGetCapitalDistribution,
	ProtoID_Qot_GetUserSecurity:         CreateQotGetUserSecurity,
	ProtoID_Qot_ModifyUserSecurity:      CreateQotModifyUserSecurity,
	ProtoID_Qot_StockFilter:             CreateQotStockFilter,
	ProtoID_Qot_GetCodeChange:           CreateQotGetCodeChange,
	ProtoID_Qot_GetIpoList:              CreateQotGetIpoList,
	ProtoID_Qot_GetFutureInfo:           CreateQotGetFutureInfo,
	ProtoID_Qot_RequestTradeDate:        CreateQotRequestTradeDate,
	ProtoID_Qot_SetPriceReminder:        CreateQotSetPriceReminder,
	ProtoID_Qot_GetPriceReminder:        CreateQotGetPriceReminder,
	ProtoID_Qot_GetUserSecurityGroup:    CreateQotGetUserSecurityGroup,
	ProtoID_Qot_GetMarketState:          CreateQotGetMarketState,
	ProtoID_Qot_GetOptionExpirationDate: CreateQotGetOptionExpirationDate,
}

Functions

func Field

func Field(key string, alias string) field

func MapSecurityToStock

func MapSecurityToStock(sm map[string]interface{}) string

func PbParser

func PbParser(fields ...field) *msgParser

func ResToArr

func ResToArr(val interface{}) []interface{}

显示转换隐形数组类型为[]interfce{}

func ResToMap

func ResToMap(val interface{}, fields ...field) map[string]interface{}

显示转换隐形map类型为 map[string]interface{}类型

func S2CToMap

func S2CToMap(s2c interface{}) map[string]interface{}

S2C(proto.Message) change to Map 直接将 proto.Message类型的返回转换为 map[string]interface{} cliet调用

func SecurityToStock

func SecurityToStock(s *qotcommon.Security) string

func Stock2Security

func Stock2Security(stock string) *qotcommon.Security

quote

func StocksToSecurity

func StocksToSecurity(stocks []string) []*qotcommon.Security

Types

type AdaptInterface

type AdaptInterface interface {
	PackBody() ([]byte, bool)                      //打包body
	UnPackBody(body []byte) Response               //解包 body 到response
	GetHeader() *Header                            //获取header
	GetProtoID() uint32                            //获取protoID
	GetC2S() interface{}                           //获取请求变量
	SetC2SOption(protoKey string, val interface{}) //设置C2S参数
	SetPacketID(packetID PacketID)                 //设置PacketID
}

func CreateExampleAdapt

func CreateExampleAdapt(dopts ...Option) AdaptInterface

func CreateGetDelayStatistics

func CreateGetDelayStatistics(dopts ...Option) AdaptInterface

func CreateGetGlobalState

func CreateGetGlobalState(dopts ...Option) AdaptInterface

func CreateGetUserInfo

func CreateGetUserInfo(dopts ...Option) AdaptInterface

func CreateInitConnect

func CreateInitConnect(dopts ...Option) AdaptInterface

* 创建InitConnect数据包对象 * PARAMS: * - dopts ...option : * 调用with方法到可选参数列表 * example With("ClientID", "powered by icehu") * RWTURNS: * - *InitConnect: * 返回一个数据包处理对象

func CreateKeepAlive

func CreateKeepAlive(dopts ...Option) AdaptInterface

func CreateNotify

func CreateNotify(dopts ...Option) AdaptInterface

func CreateQotGetBasicQot

func CreateQotGetBasicQot(dopts ...Option) AdaptInterface

func CreateQotGetBroker

func CreateQotGetBroker(dopts ...Option) AdaptInterface

func CreateQotGetCapitalDistribution

func CreateQotGetCapitalDistribution(dopts ...Option) AdaptInterface

func CreateQotGetCapitalFlow

func CreateQotGetCapitalFlow(dopts ...Option) AdaptInterface

func CreateQotGetCodeChange

func CreateQotGetCodeChange(dopts ...Option) AdaptInterface

func CreateQotGetFutureInfo

func CreateQotGetFutureInfo(dopts ...Option) AdaptInterface

func CreateQotGetHoldingChangeList

func CreateQotGetHoldingChangeList(dopts ...Option) AdaptInterface

func CreateQotGetIpoList

func CreateQotGetIpoList(dopts ...Option) AdaptInterface

func CreateQotGetKL

func CreateQotGetKL(dopts ...Option) AdaptInterface

func CreateQotGetMarketState

func CreateQotGetMarketState(dopts ...Option) AdaptInterface

func CreateQotGetOptionChain

func CreateQotGetOptionChain(dopts ...Option) AdaptInterface

func CreateQotGetOptionExpirationDate

func CreateQotGetOptionExpirationDate(dopts ...Option) AdaptInterface

func CreateQotGetOrderBook

func CreateQotGetOrderBook(dopts ...Option) AdaptInterface

func CreateQotGetOwnerPlate

func CreateQotGetOwnerPlate(dopts ...Option) AdaptInterface

func CreateQotGetPlateSecurity

func CreateQotGetPlateSecurity(dopts ...Option) AdaptInterface

func CreateQotGetPlateSet

func CreateQotGetPlateSet(dopts ...Option) AdaptInterface

func CreateQotGetPriceReminder

func CreateQotGetPriceReminder(dopts ...Option) AdaptInterface

func CreateQotGetRT

func CreateQotGetRT(dopts ...Option) AdaptInterface

func CreateQotGetReference

func CreateQotGetReference(dopts ...Option) AdaptInterface

func CreateQotGetSecuritySnapshot

func CreateQotGetSecuritySnapshot(dopts ...Option) AdaptInterface

func CreateQotGetStaticInfo

func CreateQotGetStaticInfo(dopts ...Option) AdaptInterface

func CreateQotGetSubInfo

func CreateQotGetSubInfo(dopts ...Option) AdaptInterface

func CreateQotGetSuspend

func CreateQotGetSuspend(dopts ...Option) AdaptInterface

func CreateQotGetTicker

func CreateQotGetTicker(dopts ...Option) AdaptInterface

func CreateQotGetUserSecurity

func CreateQotGetUserSecurity(dopts ...Option) AdaptInterface

func CreateQotGetUserSecurityGroup

func CreateQotGetUserSecurityGroup(dopts ...Option) AdaptInterface

func CreateQotGetWarrant

func CreateQotGetWarrant(dopts ...Option) AdaptInterface

func CreateQotModifyUserSecurity

func CreateQotModifyUserSecurity(dopts ...Option) AdaptInterface

func CreateQotRegQotPush

func CreateQotRegQotPush(dopts ...Option) AdaptInterface

func CreateQotRequestHistoryKL

func CreateQotRequestHistoryKL(dopts ...Option) AdaptInterface

func CreateQotRequestHistoryKLQuota

func CreateQotRequestHistoryKLQuota(dopts ...Option) AdaptInterface

func CreateQotRequestRehab

func CreateQotRequestRehab(dopts ...Option) AdaptInterface

func CreateQotRequestTradeDate

func CreateQotRequestTradeDate(dopts ...Option) AdaptInterface

func CreateQotSetPriceReminder

func CreateQotSetPriceReminder(dopts ...Option) AdaptInterface

func CreateQotStockFilter

func CreateQotStockFilter(dopts ...Option) AdaptInterface

func CreateQotSub

func CreateQotSub(dopts ...Option) AdaptInterface

func CreateQotUpdateBasicQot

func CreateQotUpdateBasicQot(dopts ...Option) AdaptInterface

func CreateQotUpdateBroker

func CreateQotUpdateBroker(dopts ...Option) AdaptInterface

func CreateQotUpdateKL

func CreateQotUpdateKL(dopts ...Option) AdaptInterface

func CreateQotUpdateOrderBook

func CreateQotUpdateOrderBook(dopts ...Option) AdaptInterface

func CreateQotUpdatePriceReminder

func CreateQotUpdatePriceReminder(dopts ...Option) AdaptInterface

func CreateQotUpdateRT

func CreateQotUpdateRT(dopts ...Option) AdaptInterface

func CreateQotUpdateTicker

func CreateQotUpdateTicker(dopts ...Option) AdaptInterface

func CreateTestCmd

func CreateTestCmd(dopts ...Option) AdaptInterface

func CreateTrdGetAccList

func CreateTrdGetAccList(dopts ...Option) AdaptInterface

func CreateTrdGetFunds

func CreateTrdGetFunds(dopts ...Option) AdaptInterface

func CreateTrdGetHistoryOrderFillList

func CreateTrdGetHistoryOrderFillList(dopts ...Option) AdaptInterface

func CreateTrdGetHistoryOrderList

func CreateTrdGetHistoryOrderList(dopts ...Option) AdaptInterface

func CreateTrdGetMarginRatio

func CreateTrdGetMarginRatio(dopts ...Option) AdaptInterface

func CreateTrdGetMaxTrdQtys

func CreateTrdGetMaxTrdQtys(dopts ...Option) AdaptInterface

func CreateTrdGetOrderFillList

func CreateTrdGetOrderFillList(dopts ...Option) AdaptInterface

func CreateTrdGetOrderList

func CreateTrdGetOrderList(dopts ...Option) AdaptInterface

func CreateTrdGetPositionList

func CreateTrdGetPositionList(dopts ...Option) AdaptInterface

func CreateTrdModifyOrder

func CreateTrdModifyOrder(dopts ...Option) AdaptInterface

func CreateTrdPlaceOrder

func CreateTrdPlaceOrder(dopts ...Option) AdaptInterface

func CreateTrdSubAccPush

func CreateTrdSubAccPush(dopts ...Option) AdaptInterface

func CreateTrdUnlockTrade

func CreateTrdUnlockTrade(dopts ...Option) AdaptInterface

func CreateTrdUpdateOrder

func CreateTrdUpdateOrder(dopts ...Option) AdaptInterface

func CreateTrdUpdateOrderFill

func CreateTrdUpdateOrderFill(dopts ...Option) AdaptInterface

func CreateVerification

func CreateVerification(dopts ...Option) AdaptInterface

type ExampleAdapt

type ExampleAdapt struct {
	// contains filtered or unexported fields
}

func (*ExampleAdapt) GetC2S

func (a *ExampleAdapt) GetC2S() interface{}

func (*ExampleAdapt) GetHeader

func (a *ExampleAdapt) GetHeader() *Header

func (*ExampleAdapt) GetProtoID

func (a *ExampleAdapt) GetProtoID() uint32

func (*ExampleAdapt) PackBody

func (a *ExampleAdapt) PackBody() ([]byte, bool)

func (*ExampleAdapt) SetC2SOption

func (a *ExampleAdapt) SetC2SOption(protoKey string, val interface{})

func (*ExampleAdapt) SetPacketID

func (a *ExampleAdapt) SetPacketID(packetID PacketID)

func (*ExampleAdapt) UnPackBody

func (a *ExampleAdapt) UnPackBody(body []byte) Response

=== no need to modify

type GetDelayStatistics

type GetDelayStatistics struct {
	// contains filtered or unexported fields
}

func (*GetDelayStatistics) GetC2S

func (a *GetDelayStatistics) GetC2S() interface{}

func (*GetDelayStatistics) GetHeader

func (a *GetDelayStatistics) GetHeader() *Header

func (*GetDelayStatistics) GetProtoID

func (a *GetDelayStatistics) GetProtoID() uint32

func (*GetDelayStatistics) PackBody

func (a *GetDelayStatistics) PackBody() ([]byte, bool)

func (*GetDelayStatistics) SetC2SOption

func (a *GetDelayStatistics) SetC2SOption(protoKey string, val interface{})

func (*GetDelayStatistics) SetPacketID

func (a *GetDelayStatistics) SetPacketID(packetID PacketID)

func (*GetDelayStatistics) UnPackBody

func (a *GetDelayStatistics) UnPackBody(body []byte) Response

=== no need to modify

type GetGlobalState

type GetGlobalState struct {
	// contains filtered or unexported fields
}

func (*GetGlobalState) GetC2S

func (a *GetGlobalState) GetC2S() interface{}

func (*GetGlobalState) GetHeader

func (a *GetGlobalState) GetHeader() *Header

func (*GetGlobalState) GetProtoID

func (a *GetGlobalState) GetProtoID() uint32

func (*GetGlobalState) PackBody

func (a *GetGlobalState) PackBody() ([]byte, bool)

func (*GetGlobalState) SetC2SOption

func (a *GetGlobalState) SetC2SOption(protoKey string, val interface{})

func (*GetGlobalState) SetPacketID

func (a *GetGlobalState) SetPacketID(packetID PacketID)

func (*GetGlobalState) UnPackBody

func (a *GetGlobalState) UnPackBody(body []byte) Response

=== no need to modify

type GetUserInfo

type GetUserInfo struct {
	// contains filtered or unexported fields
}

func (*GetUserInfo) GetC2S

func (a *GetUserInfo) GetC2S() interface{}

func (*GetUserInfo) GetHeader

func (a *GetUserInfo) GetHeader() *Header

func (*GetUserInfo) GetProtoID

func (a *GetUserInfo) GetProtoID() uint32

func (*GetUserInfo) PackBody

func (a *GetUserInfo) PackBody() ([]byte, bool)

func (*GetUserInfo) SetC2SOption

func (a *GetUserInfo) SetC2SOption(protoKey string, val interface{})

func (*GetUserInfo) SetPacketID

func (a *GetUserInfo) SetPacketID(packetID PacketID)

func (*GetUserInfo) UnPackBody

func (a *GetUserInfo) UnPackBody(body []byte) Response

=== no need to modify

type Header struct {
	// contains filtered or unexported fields
}

func (*Header) GetBodyLen

func (h *Header) GetBodyLen() uint32

func (*Header) GetBodySHA1

func (h *Header) GetBodySHA1() [20]uint8

func (*Header) GetProtoFmtType

func (h *Header) GetProtoFmtType() uint8

func (*Header) GetProtoID

func (h *Header) GetProtoID() uint32

func (*Header) GetProtoVer

func (h *Header) GetProtoVer() uint8

func (*Header) GetReserved

func (h *Header) GetReserved() [8]uint8

func (*Header) GetSeriaNo

func (h *Header) GetSeriaNo() uint32

func (*Header) Pack

func (h *Header) Pack() []byte

func (*Header) SetBodyLen

func (h *Header) SetBodyLen(bodyLen uint32)

func (*Header) SetBodySHA1

func (h *Header) SetBodySHA1(bodySHA1 []uint8)

func (*Header) SetProtoFmtType

func (h *Header) SetProtoFmtType(protoFmtType uint8)

func (*Header) SetProtoID

func (h *Header) SetProtoID(protoID uint32)

func (*Header) SetProtoVer

func (h *Header) SetProtoVer(protoVer uint8)

func (*Header) SetReserved

func (h *Header) SetReserved(reserved []uint8)

func (*Header) SetSeriaNo

func (h *Header) SetSeriaNo(seriaNo uint32)

func (*Header) UnPack

func (h *Header) UnPack(data []byte)

type InitConnect

type InitConnect struct {
	// contains filtered or unexported fields
}

func (*InitConnect) GetC2S

func (a *InitConnect) GetC2S() interface{}

func (*InitConnect) GetHeader

func (a *InitConnect) GetHeader() *Header

func (*InitConnect) GetProtoID

func (a *InitConnect) GetProtoID() uint32

func (*InitConnect) PackBody

func (a *InitConnect) PackBody() ([]byte, bool)

func (*InitConnect) SetC2SOption

func (a *InitConnect) SetC2SOption(protoKey string, val interface{})

func (*InitConnect) SetPacketEncAlgo

func (a *InitConnect) SetPacketEncAlgo(packetEncAlgo int32)

func (*InitConnect) SetPacketID

func (a *InitConnect) SetPacketID(packetID PacketID)

func (*InitConnect) SetPushProtoFmt

func (a *InitConnect) SetPushProtoFmt(pushProtoFmt int32)

func (*InitConnect) SetRecvNotify

func (a *InitConnect) SetRecvNotify(recvNotify bool)

*

func (*InitConnect) UnPackBody

func (a *InitConnect) UnPackBody(body []byte) Response

=== no need to modify

type KeepAlive

type KeepAlive struct {
	// contains filtered or unexported fields
}

func (*KeepAlive) GetC2S

func (a *KeepAlive) GetC2S() interface{}

func (*KeepAlive) GetHeader

func (a *KeepAlive) GetHeader() *Header

func (*KeepAlive) GetProtoID

func (a *KeepAlive) GetProtoID() uint32

func (*KeepAlive) PackBody

func (a *KeepAlive) PackBody() ([]byte, bool)

func (*KeepAlive) SetC2SOption

func (a *KeepAlive) SetC2SOption(protoKey string, val interface{})

func (*KeepAlive) SetPacketID

func (a *KeepAlive) SetPacketID(packetID PacketID)

func (*KeepAlive) UnPackBody

func (a *KeepAlive) UnPackBody(body []byte) Response

=== no need to modify

type Message

type Message map[string]interface{}

type Notify

type Notify struct {
	// contains filtered or unexported fields
}

func (*Notify) GetC2S

func (a *Notify) GetC2S() interface{}

func (*Notify) GetHeader

func (a *Notify) GetHeader() *Header

func (*Notify) GetProtoID

func (a *Notify) GetProtoID() uint32

func (*Notify) PackBody

func (a *Notify) PackBody() ([]byte, bool)

func (*Notify) SetC2SOption

func (a *Notify) SetC2SOption(protoKey string, val interface{})

func (*Notify) SetPacketID

func (a *Notify) SetPacketID(packetID PacketID)

func (*Notify) UnPackBody

func (a *Notify) UnPackBody(body []byte) Response

type Option

type Option struct {
	// contains filtered or unexported fields
}

func With

func With(protoKey string, val interface{}) Option

* 创建一个数据包对象时传入的参数 * PARAMS: * - protoKey: proto 文件中定义的 C2S的key * - val: 初始化值,注意:值的类型需要匹配,如果类型不匹配会被丢弃设置不成功 * RETURNS: * - Option 参数设置struct,通过他来实现到可变参数

type OptionInterface

type OptionInterface interface {
	// contains filtered or unexported methods
}

type PacketID

type PacketID struct {
	ConnID   uint64 //
	SerialNo uint32
}

type QotGetBasicQot

type QotGetBasicQot struct {
	// contains filtered or unexported fields
}

func (*QotGetBasicQot) GetC2S

func (a *QotGetBasicQot) GetC2S() interface{}

func (*QotGetBasicQot) GetHeader

func (a *QotGetBasicQot) GetHeader() *Header

func (*QotGetBasicQot) GetProtoID

func (a *QotGetBasicQot) GetProtoID() uint32

func (*QotGetBasicQot) PackBody

func (a *QotGetBasicQot) PackBody() ([]byte, bool)

func (*QotGetBasicQot) SetC2SOption

func (a *QotGetBasicQot) SetC2SOption(protoKey string, val interface{})

func (*QotGetBasicQot) SetPacketID

func (a *QotGetBasicQot) SetPacketID(packetID PacketID)

func (*QotGetBasicQot) UnPackBody

func (a *QotGetBasicQot) UnPackBody(body []byte) Response

=== no need to modify

type QotGetBroker

type QotGetBroker struct {
	// contains filtered or unexported fields
}

func (*QotGetBroker) GetC2S

func (a *QotGetBroker) GetC2S() interface{}

func (*QotGetBroker) GetHeader

func (a *QotGetBroker) GetHeader() *Header

func (*QotGetBroker) GetProtoID

func (a *QotGetBroker) GetProtoID() uint32

func (*QotGetBroker) PackBody

func (a *QotGetBroker) PackBody() ([]byte, bool)

func (*QotGetBroker) SetC2SOption

func (a *QotGetBroker) SetC2SOption(protoKey string, val interface{})

func (*QotGetBroker) SetPacketID

func (a *QotGetBroker) SetPacketID(packetID PacketID)

func (*QotGetBroker) UnPackBody

func (a *QotGetBroker) UnPackBody(body []byte) Response

=== no need to modify

type QotGetCapitalDistribution

type QotGetCapitalDistribution struct {
	// contains filtered or unexported fields
}

func (*QotGetCapitalDistribution) GetC2S

func (a *QotGetCapitalDistribution) GetC2S() interface{}

func (*QotGetCapitalDistribution) GetHeader

func (a *QotGetCapitalDistribution) GetHeader() *Header

func (*QotGetCapitalDistribution) GetProtoID

func (a *QotGetCapitalDistribution) GetProtoID() uint32

func (*QotGetCapitalDistribution) PackBody

func (a *QotGetCapitalDistribution) PackBody() ([]byte, bool)

func (*QotGetCapitalDistribution) SetC2SOption

func (a *QotGetCapitalDistribution) SetC2SOption(protoKey string, val interface{})

func (*QotGetCapitalDistribution) SetPacketID

func (a *QotGetCapitalDistribution) SetPacketID(packetID PacketID)

func (*QotGetCapitalDistribution) UnPackBody

func (a *QotGetCapitalDistribution) UnPackBody(body []byte) Response

=== no need to modify

type QotGetCapitalFlow

type QotGetCapitalFlow struct {
	// contains filtered or unexported fields
}

func (*QotGetCapitalFlow) GetC2S

func (a *QotGetCapitalFlow) GetC2S() interface{}

func (*QotGetCapitalFlow) GetHeader

func (a *QotGetCapitalFlow) GetHeader() *Header

func (*QotGetCapitalFlow) GetProtoID

func (a *QotGetCapitalFlow) GetProtoID() uint32

func (*QotGetCapitalFlow) PackBody

func (a *QotGetCapitalFlow) PackBody() ([]byte, bool)

func (*QotGetCapitalFlow) SetC2SOption

func (a *QotGetCapitalFlow) SetC2SOption(protoKey string, val interface{})

func (*QotGetCapitalFlow) SetPacketID

func (a *QotGetCapitalFlow) SetPacketID(packetID PacketID)

func (*QotGetCapitalFlow) UnPackBody

func (a *QotGetCapitalFlow) UnPackBody(body []byte) Response

=== no need to modify

type QotGetCodeChange

type QotGetCodeChange struct {
	// contains filtered or unexported fields
}

func (*QotGetCodeChange) GetC2S

func (a *QotGetCodeChange) GetC2S() interface{}

func (*QotGetCodeChange) GetHeader

func (a *QotGetCodeChange) GetHeader() *Header

func (*QotGetCodeChange) GetProtoID

func (a *QotGetCodeChange) GetProtoID() uint32

func (*QotGetCodeChange) PackBody

func (a *QotGetCodeChange) PackBody() ([]byte, bool)

func (*QotGetCodeChange) SetC2SOption

func (a *QotGetCodeChange) SetC2SOption(protoKey string, val interface{})

func (*QotGetCodeChange) SetPacketID

func (a *QotGetCodeChange) SetPacketID(packetID PacketID)

func (*QotGetCodeChange) UnPackBody

func (a *QotGetCodeChange) UnPackBody(body []byte) Response

=== no need to modify

type QotGetFutureInfo

type QotGetFutureInfo struct {
	// contains filtered or unexported fields
}

func (*QotGetFutureInfo) GetC2S

func (a *QotGetFutureInfo) GetC2S() interface{}

func (*QotGetFutureInfo) GetHeader

func (a *QotGetFutureInfo) GetHeader() *Header

func (*QotGetFutureInfo) GetProtoID

func (a *QotGetFutureInfo) GetProtoID() uint32

func (*QotGetFutureInfo) PackBody

func (a *QotGetFutureInfo) PackBody() ([]byte, bool)

func (*QotGetFutureInfo) SetC2SOption

func (a *QotGetFutureInfo) SetC2SOption(protoKey string, val interface{})

func (*QotGetFutureInfo) SetPacketID

func (a *QotGetFutureInfo) SetPacketID(packetID PacketID)

func (*QotGetFutureInfo) UnPackBody

func (a *QotGetFutureInfo) UnPackBody(body []byte) Response

=== no need to modify

type QotGetHoldingChangeList

type QotGetHoldingChangeList struct {
	// contains filtered or unexported fields
}

func (*QotGetHoldingChangeList) GetC2S

func (a *QotGetHoldingChangeList) GetC2S() interface{}

func (*QotGetHoldingChangeList) GetHeader

func (a *QotGetHoldingChangeList) GetHeader() *Header

func (*QotGetHoldingChangeList) GetProtoID

func (a *QotGetHoldingChangeList) GetProtoID() uint32

func (*QotGetHoldingChangeList) PackBody

func (a *QotGetHoldingChangeList) PackBody() ([]byte, bool)

func (*QotGetHoldingChangeList) SetC2SOption

func (a *QotGetHoldingChangeList) SetC2SOption(protoKey string, val interface{})

func (*QotGetHoldingChangeList) SetPacketID

func (a *QotGetHoldingChangeList) SetPacketID(packetID PacketID)

func (*QotGetHoldingChangeList) UnPackBody

func (a *QotGetHoldingChangeList) UnPackBody(body []byte) Response

=== no need to modify

type QotGetIpoList

type QotGetIpoList struct {
	// contains filtered or unexported fields
}

func (*QotGetIpoList) GetC2S

func (a *QotGetIpoList) GetC2S() interface{}

func (*QotGetIpoList) GetHeader

func (a *QotGetIpoList) GetHeader() *Header

func (*QotGetIpoList) GetProtoID

func (a *QotGetIpoList) GetProtoID() uint32

func (*QotGetIpoList) PackBody

func (a *QotGetIpoList) PackBody() ([]byte, bool)

func (*QotGetIpoList) SetC2SOption

func (a *QotGetIpoList) SetC2SOption(protoKey string, val interface{})

func (*QotGetIpoList) SetPacketID

func (a *QotGetIpoList) SetPacketID(packetID PacketID)

func (*QotGetIpoList) UnPackBody

func (a *QotGetIpoList) UnPackBody(body []byte) Response

=== no need to modify

type QotGetKL

type QotGetKL struct {
	// contains filtered or unexported fields
}

func (*QotGetKL) GetC2S

func (a *QotGetKL) GetC2S() interface{}

func (*QotGetKL) GetHeader

func (a *QotGetKL) GetHeader() *Header

func (*QotGetKL) GetProtoID

func (a *QotGetKL) GetProtoID() uint32

func (*QotGetKL) PackBody

func (a *QotGetKL) PackBody() ([]byte, bool)

func (*QotGetKL) SetC2SOption

func (a *QotGetKL) SetC2SOption(protoKey string, val interface{})

func (*QotGetKL) SetPacketID

func (a *QotGetKL) SetPacketID(packetID PacketID)

func (*QotGetKL) UnPackBody

func (a *QotGetKL) UnPackBody(body []byte) Response

=== no need to modify

type QotGetMarketState

type QotGetMarketState struct {
	// contains filtered or unexported fields
}

func (*QotGetMarketState) GetC2S

func (a *QotGetMarketState) GetC2S() interface{}

func (*QotGetMarketState) GetHeader

func (a *QotGetMarketState) GetHeader() *Header

func (*QotGetMarketState) GetProtoID

func (a *QotGetMarketState) GetProtoID() uint32

func (*QotGetMarketState) PackBody

func (a *QotGetMarketState) PackBody() ([]byte, bool)

func (*QotGetMarketState) SetC2SOption

func (a *QotGetMarketState) SetC2SOption(protoKey string, val interface{})

func (*QotGetMarketState) SetPacketID

func (a *QotGetMarketState) SetPacketID(packetID PacketID)

func (*QotGetMarketState) UnPackBody

func (a *QotGetMarketState) UnPackBody(body []byte) Response

=== no need to modify

type QotGetOptionChain

type QotGetOptionChain struct {
	// contains filtered or unexported fields
}

func (*QotGetOptionChain) GetC2S

func (a *QotGetOptionChain) GetC2S() interface{}

func (*QotGetOptionChain) GetHeader

func (a *QotGetOptionChain) GetHeader() *Header

func (*QotGetOptionChain) GetProtoID

func (a *QotGetOptionChain) GetProtoID() uint32

func (*QotGetOptionChain) PackBody

func (a *QotGetOptionChain) PackBody() ([]byte, bool)

func (*QotGetOptionChain) SetC2SOption

func (a *QotGetOptionChain) SetC2SOption(protoKey string, val interface{})

func (*QotGetOptionChain) SetPacketID

func (a *QotGetOptionChain) SetPacketID(packetID PacketID)

func (*QotGetOptionChain) UnPackBody

func (a *QotGetOptionChain) UnPackBody(body []byte) Response

=== no need to modify

type QotGetOptionExpirationDate

type QotGetOptionExpirationDate struct {
	// contains filtered or unexported fields
}

func (*QotGetOptionExpirationDate) GetC2S

func (a *QotGetOptionExpirationDate) GetC2S() interface{}

func (*QotGetOptionExpirationDate) GetHeader

func (a *QotGetOptionExpirationDate) GetHeader() *Header

func (*QotGetOptionExpirationDate) GetProtoID

func (a *QotGetOptionExpirationDate) GetProtoID() uint32

func (*QotGetOptionExpirationDate) PackBody

func (a *QotGetOptionExpirationDate) PackBody() ([]byte, bool)

func (*QotGetOptionExpirationDate) SetC2SOption

func (a *QotGetOptionExpirationDate) SetC2SOption(protoKey string, val interface{})

func (*QotGetOptionExpirationDate) SetPacketID

func (a *QotGetOptionExpirationDate) SetPacketID(packetID PacketID)

func (*QotGetOptionExpirationDate) UnPackBody

func (a *QotGetOptionExpirationDate) UnPackBody(body []byte) Response

=== no need to modify

type QotGetOrderBook

type QotGetOrderBook struct {
	// contains filtered or unexported fields
}

func (*QotGetOrderBook) GetC2S

func (a *QotGetOrderBook) GetC2S() interface{}

func (*QotGetOrderBook) GetHeader

func (a *QotGetOrderBook) GetHeader() *Header

func (*QotGetOrderBook) GetProtoID

func (a *QotGetOrderBook) GetProtoID() uint32

func (*QotGetOrderBook) PackBody

func (a *QotGetOrderBook) PackBody() ([]byte, bool)

func (*QotGetOrderBook) SetC2SOption

func (a *QotGetOrderBook) SetC2SOption(protoKey string, val interface{})

func (*QotGetOrderBook) SetPacketID

func (a *QotGetOrderBook) SetPacketID(packetID PacketID)

func (*QotGetOrderBook) UnPackBody

func (a *QotGetOrderBook) UnPackBody(body []byte) Response

=== no need to modify

type QotGetOwnerPlate

type QotGetOwnerPlate struct {
	// contains filtered or unexported fields
}

func (*QotGetOwnerPlate) GetC2S

func (a *QotGetOwnerPlate) GetC2S() interface{}

func (*QotGetOwnerPlate) GetHeader

func (a *QotGetOwnerPlate) GetHeader() *Header

func (*QotGetOwnerPlate) GetProtoID

func (a *QotGetOwnerPlate) GetProtoID() uint32

func (*QotGetOwnerPlate) PackBody

func (a *QotGetOwnerPlate) PackBody() ([]byte, bool)

func (*QotGetOwnerPlate) SetC2SOption

func (a *QotGetOwnerPlate) SetC2SOption(protoKey string, val interface{})

func (*QotGetOwnerPlate) SetPacketID

func (a *QotGetOwnerPlate) SetPacketID(packetID PacketID)

func (*QotGetOwnerPlate) UnPackBody

func (a *QotGetOwnerPlate) UnPackBody(body []byte) Response

=== no need to modify

type QotGetPlateSecurity

type QotGetPlateSecurity struct {
	// contains filtered or unexported fields
}

func (*QotGetPlateSecurity) GetC2S

func (a *QotGetPlateSecurity) GetC2S() interface{}

func (*QotGetPlateSecurity) GetHeader

func (a *QotGetPlateSecurity) GetHeader() *Header

func (*QotGetPlateSecurity) GetProtoID

func (a *QotGetPlateSecurity) GetProtoID() uint32

func (*QotGetPlateSecurity) PackBody

func (a *QotGetPlateSecurity) PackBody() ([]byte, bool)

func (*QotGetPlateSecurity) SetC2SOption

func (a *QotGetPlateSecurity) SetC2SOption(protoKey string, val interface{})

func (*QotGetPlateSecurity) SetPacketID

func (a *QotGetPlateSecurity) SetPacketID(packetID PacketID)

func (*QotGetPlateSecurity) UnPackBody

func (a *QotGetPlateSecurity) UnPackBody(body []byte) Response

=== no need to modify

type QotGetPlateSet

type QotGetPlateSet struct {
	// contains filtered or unexported fields
}

func (*QotGetPlateSet) GetC2S

func (a *QotGetPlateSet) GetC2S() interface{}

func (*QotGetPlateSet) GetHeader

func (a *QotGetPlateSet) GetHeader() *Header

func (*QotGetPlateSet) GetProtoID

func (a *QotGetPlateSet) GetProtoID() uint32

func (*QotGetPlateSet) PackBody

func (a *QotGetPlateSet) PackBody() ([]byte, bool)

func (*QotGetPlateSet) SetC2SOption

func (a *QotGetPlateSet) SetC2SOption(protoKey string, val interface{})

func (*QotGetPlateSet) SetPacketID

func (a *QotGetPlateSet) SetPacketID(packetID PacketID)

func (*QotGetPlateSet) UnPackBody

func (a *QotGetPlateSet) UnPackBody(body []byte) Response

=== no need to modify

type QotGetPriceReminder

type QotGetPriceReminder struct {
	// contains filtered or unexported fields
}

func (*QotGetPriceReminder) GetC2S

func (a *QotGetPriceReminder) GetC2S() interface{}

func (*QotGetPriceReminder) GetHeader

func (a *QotGetPriceReminder) GetHeader() *Header

func (*QotGetPriceReminder) GetProtoID

func (a *QotGetPriceReminder) GetProtoID() uint32

func (*QotGetPriceReminder) PackBody

func (a *QotGetPriceReminder) PackBody() ([]byte, bool)

func (*QotGetPriceReminder) SetC2SOption

func (a *QotGetPriceReminder) SetC2SOption(protoKey string, val interface{})

func (*QotGetPriceReminder) SetPacketID

func (a *QotGetPriceReminder) SetPacketID(packetID PacketID)

func (*QotGetPriceReminder) UnPackBody

func (a *QotGetPriceReminder) UnPackBody(body []byte) Response

=== no need to modify

type QotGetRT

type QotGetRT struct {
	// contains filtered or unexported fields
}

func (*QotGetRT) GetC2S

func (a *QotGetRT) GetC2S() interface{}

func (*QotGetRT) GetHeader

func (a *QotGetRT) GetHeader() *Header

func (*QotGetRT) GetProtoID

func (a *QotGetRT) GetProtoID() uint32

func (*QotGetRT) PackBody

func (a *QotGetRT) PackBody() ([]byte, bool)

func (*QotGetRT) SetC2SOption

func (a *QotGetRT) SetC2SOption(protoKey string, val interface{})

func (*QotGetRT) SetPacketID

func (a *QotGetRT) SetPacketID(packetID PacketID)

func (*QotGetRT) UnPackBody

func (a *QotGetRT) UnPackBody(body []byte) Response

=== no need to modify

type QotGetReference

type QotGetReference struct {
	// contains filtered or unexported fields
}

func (*QotGetReference) GetC2S

func (a *QotGetReference) GetC2S() interface{}

func (*QotGetReference) GetHeader

func (a *QotGetReference) GetHeader() *Header

func (*QotGetReference) GetProtoID

func (a *QotGetReference) GetProtoID() uint32

func (*QotGetReference) PackBody

func (a *QotGetReference) PackBody() ([]byte, bool)

func (*QotGetReference) SetC2SOption

func (a *QotGetReference) SetC2SOption(protoKey string, val interface{})

func (*QotGetReference) SetPacketID

func (a *QotGetReference) SetPacketID(packetID PacketID)

func (*QotGetReference) UnPackBody

func (a *QotGetReference) UnPackBody(body []byte) Response

=== no need to modify

type QotGetSecuritySnapshot

type QotGetSecuritySnapshot struct {
	// contains filtered or unexported fields
}

func (*QotGetSecuritySnapshot) GetC2S

func (a *QotGetSecuritySnapshot) GetC2S() interface{}

func (*QotGetSecuritySnapshot) GetHeader

func (a *QotGetSecuritySnapshot) GetHeader() *Header

func (*QotGetSecuritySnapshot) GetProtoID

func (a *QotGetSecuritySnapshot) GetProtoID() uint32

func (*QotGetSecuritySnapshot) PackBody

func (a *QotGetSecuritySnapshot) PackBody() ([]byte, bool)

func (*QotGetSecuritySnapshot) SetC2SOption

func (a *QotGetSecuritySnapshot) SetC2SOption(protoKey string, val interface{})

func (*QotGetSecuritySnapshot) SetPacketID

func (a *QotGetSecuritySnapshot) SetPacketID(packetID PacketID)

func (*QotGetSecuritySnapshot) UnPackBody

func (a *QotGetSecuritySnapshot) UnPackBody(body []byte) Response

=== no need to modify

type QotGetStaticInfo

type QotGetStaticInfo struct {
	// contains filtered or unexported fields
}

func (*QotGetStaticInfo) GetC2S

func (a *QotGetStaticInfo) GetC2S() interface{}

func (*QotGetStaticInfo) GetHeader

func (a *QotGetStaticInfo) GetHeader() *Header

func (*QotGetStaticInfo) GetProtoID

func (a *QotGetStaticInfo) GetProtoID() uint32

func (*QotGetStaticInfo) PackBody

func (a *QotGetStaticInfo) PackBody() ([]byte, bool)

func (*QotGetStaticInfo) SetC2SOption

func (a *QotGetStaticInfo) SetC2SOption(protoKey string, val interface{})

func (*QotGetStaticInfo) SetPacketID

func (a *QotGetStaticInfo) SetPacketID(packetID PacketID)

func (*QotGetStaticInfo) UnPackBody

func (a *QotGetStaticInfo) UnPackBody(body []byte) Response

=== no need to modify

type QotGetSubInfo

type QotGetSubInfo struct {
	// contains filtered or unexported fields
}

func (*QotGetSubInfo) GetC2S

func (a *QotGetSubInfo) GetC2S() interface{}

func (*QotGetSubInfo) GetHeader

func (a *QotGetSubInfo) GetHeader() *Header

func (*QotGetSubInfo) GetProtoID

func (a *QotGetSubInfo) GetProtoID() uint32

func (*QotGetSubInfo) PackBody

func (a *QotGetSubInfo) PackBody() ([]byte, bool)

func (*QotGetSubInfo) SetC2SOption

func (a *QotGetSubInfo) SetC2SOption(protoKey string, val interface{})

func (*QotGetSubInfo) SetPacketID

func (a *QotGetSubInfo) SetPacketID(packetID PacketID)

func (*QotGetSubInfo) UnPackBody

func (a *QotGetSubInfo) UnPackBody(body []byte) Response

=== no need to modify

type QotGetSuspend

type QotGetSuspend struct {
	// contains filtered or unexported fields
}

func (*QotGetSuspend) GetC2S

func (a *QotGetSuspend) GetC2S() interface{}

func (*QotGetSuspend) GetHeader

func (a *QotGetSuspend) GetHeader() *Header

func (*QotGetSuspend) GetProtoID

func (a *QotGetSuspend) GetProtoID() uint32

func (*QotGetSuspend) PackBody

func (a *QotGetSuspend) PackBody() ([]byte, bool)

func (*QotGetSuspend) SetC2SOption

func (a *QotGetSuspend) SetC2SOption(protoKey string, val interface{})

func (*QotGetSuspend) SetPacketID

func (a *QotGetSuspend) SetPacketID(packetID PacketID)

func (*QotGetSuspend) UnPackBody

func (a *QotGetSuspend) UnPackBody(body []byte) Response

=== no need to modify

type QotGetTicker

type QotGetTicker struct {
	// contains filtered or unexported fields
}

func (*QotGetTicker) GetC2S

func (a *QotGetTicker) GetC2S() interface{}

func (*QotGetTicker) GetHeader

func (a *QotGetTicker) GetHeader() *Header

func (*QotGetTicker) GetProtoID

func (a *QotGetTicker) GetProtoID() uint32

func (*QotGetTicker) PackBody

func (a *QotGetTicker) PackBody() ([]byte, bool)

func (*QotGetTicker) SetC2SOption

func (a *QotGetTicker) SetC2SOption(protoKey string, val interface{})

func (*QotGetTicker) SetPacketID

func (a *QotGetTicker) SetPacketID(packetID PacketID)

func (*QotGetTicker) UnPackBody

func (a *QotGetTicker) UnPackBody(body []byte) Response

=== no need to modify

type QotGetUserSecurity

type QotGetUserSecurity struct {
	// contains filtered or unexported fields
}

func (*QotGetUserSecurity) GetC2S

func (a *QotGetUserSecurity) GetC2S() interface{}

func (*QotGetUserSecurity) GetHeader

func (a *QotGetUserSecurity) GetHeader() *Header

func (*QotGetUserSecurity) GetProtoID

func (a *QotGetUserSecurity) GetProtoID() uint32

func (*QotGetUserSecurity) PackBody

func (a *QotGetUserSecurity) PackBody() ([]byte, bool)

func (*QotGetUserSecurity) SetC2SOption

func (a *QotGetUserSecurity) SetC2SOption(protoKey string, val interface{})

func (*QotGetUserSecurity) SetPacketID

func (a *QotGetUserSecurity) SetPacketID(packetID PacketID)

func (*QotGetUserSecurity) UnPackBody

func (a *QotGetUserSecurity) UnPackBody(body []byte) Response

=== no need to modify

type QotGetUserSecurityGroup

type QotGetUserSecurityGroup struct {
	// contains filtered or unexported fields
}

func (*QotGetUserSecurityGroup) GetC2S

func (a *QotGetUserSecurityGroup) GetC2S() interface{}

func (*QotGetUserSecurityGroup) GetHeader

func (a *QotGetUserSecurityGroup) GetHeader() *Header

func (*QotGetUserSecurityGroup) GetProtoID

func (a *QotGetUserSecurityGroup) GetProtoID() uint32

func (*QotGetUserSecurityGroup) PackBody

func (a *QotGetUserSecurityGroup) PackBody() ([]byte, bool)

func (*QotGetUserSecurityGroup) SetC2SOption

func (a *QotGetUserSecurityGroup) SetC2SOption(protoKey string, val interface{})

func (*QotGetUserSecurityGroup) SetPacketID

func (a *QotGetUserSecurityGroup) SetPacketID(packetID PacketID)

func (*QotGetUserSecurityGroup) UnPackBody

func (a *QotGetUserSecurityGroup) UnPackBody(body []byte) Response

=== no need to modify

type QotGetWarrant

type QotGetWarrant struct {
	// contains filtered or unexported fields
}

func (*QotGetWarrant) GetC2S

func (a *QotGetWarrant) GetC2S() interface{}

func (*QotGetWarrant) GetHeader

func (a *QotGetWarrant) GetHeader() *Header

func (*QotGetWarrant) GetProtoID

func (a *QotGetWarrant) GetProtoID() uint32

func (*QotGetWarrant) PackBody

func (a *QotGetWarrant) PackBody() ([]byte, bool)

func (*QotGetWarrant) SetC2SOption

func (a *QotGetWarrant) SetC2SOption(protoKey string, val interface{})

func (*QotGetWarrant) SetPacketID

func (a *QotGetWarrant) SetPacketID(packetID PacketID)

func (*QotGetWarrant) UnPackBody

func (a *QotGetWarrant) UnPackBody(body []byte) Response

=== no need to modify

type QotModifyUserSecurity

type QotModifyUserSecurity struct {
	// contains filtered or unexported fields
}

func (*QotModifyUserSecurity) GetC2S

func (a *QotModifyUserSecurity) GetC2S() interface{}

func (*QotModifyUserSecurity) GetHeader

func (a *QotModifyUserSecurity) GetHeader() *Header

func (*QotModifyUserSecurity) GetProtoID

func (a *QotModifyUserSecurity) GetProtoID() uint32

func (*QotModifyUserSecurity) PackBody

func (a *QotModifyUserSecurity) PackBody() ([]byte, bool)

func (*QotModifyUserSecurity) SetC2SOption

func (a *QotModifyUserSecurity) SetC2SOption(protoKey string, val interface{})

func (*QotModifyUserSecurity) SetPacketID

func (a *QotModifyUserSecurity) SetPacketID(packetID PacketID)

func (*QotModifyUserSecurity) UnPackBody

func (a *QotModifyUserSecurity) UnPackBody(body []byte) Response

=== no need to modify

type QotRegQotPush

type QotRegQotPush struct {
	// contains filtered or unexported fields
}

func (*QotRegQotPush) GetC2S

func (a *QotRegQotPush) GetC2S() interface{}

func (*QotRegQotPush) GetHeader

func (a *QotRegQotPush) GetHeader() *Header

func (*QotRegQotPush) GetProtoID

func (a *QotRegQotPush) GetProtoID() uint32

func (*QotRegQotPush) PackBody

func (a *QotRegQotPush) PackBody() ([]byte, bool)

func (*QotRegQotPush) SetC2SOption

func (a *QotRegQotPush) SetC2SOption(protoKey string, val interface{})

func (*QotRegQotPush) SetPacketID

func (a *QotRegQotPush) SetPacketID(packetID PacketID)

func (*QotRegQotPush) UnPackBody

func (a *QotRegQotPush) UnPackBody(body []byte) Response

=== no need to modify

type QotRequestHistoryKL

type QotRequestHistoryKL struct {
	// contains filtered or unexported fields
}

func (*QotRequestHistoryKL) GetC2S

func (a *QotRequestHistoryKL) GetC2S() interface{}

func (*QotRequestHistoryKL) GetHeader

func (a *QotRequestHistoryKL) GetHeader() *Header

func (*QotRequestHistoryKL) GetProtoID

func (a *QotRequestHistoryKL) GetProtoID() uint32

func (*QotRequestHistoryKL) PackBody

func (a *QotRequestHistoryKL) PackBody() ([]byte, bool)

func (*QotRequestHistoryKL) SetC2SOption

func (a *QotRequestHistoryKL) SetC2SOption(protoKey string, val interface{})

func (*QotRequestHistoryKL) SetPacketID

func (a *QotRequestHistoryKL) SetPacketID(packetID PacketID)

func (*QotRequestHistoryKL) UnPackBody

func (a *QotRequestHistoryKL) UnPackBody(body []byte) Response

=== no need to modify

type QotRequestHistoryKLQuota

type QotRequestHistoryKLQuota struct {
	// contains filtered or unexported fields
}

func (*QotRequestHistoryKLQuota) GetC2S

func (a *QotRequestHistoryKLQuota) GetC2S() interface{}

func (*QotRequestHistoryKLQuota) GetHeader

func (a *QotRequestHistoryKLQuota) GetHeader() *Header

func (*QotRequestHistoryKLQuota) GetProtoID

func (a *QotRequestHistoryKLQuota) GetProtoID() uint32

func (*QotRequestHistoryKLQuota) PackBody

func (a *QotRequestHistoryKLQuota) PackBody() ([]byte, bool)

func (*QotRequestHistoryKLQuota) SetC2SOption

func (a *QotRequestHistoryKLQuota) SetC2SOption(protoKey string, val interface{})

func (*QotRequestHistoryKLQuota) SetPacketID

func (a *QotRequestHistoryKLQuota) SetPacketID(packetID PacketID)

func (*QotRequestHistoryKLQuota) UnPackBody

func (a *QotRequestHistoryKLQuota) UnPackBody(body []byte) Response

=== no need to modify

type QotRequestRehab

type QotRequestRehab struct {
	// contains filtered or unexported fields
}

func (*QotRequestRehab) GetC2S

func (a *QotRequestRehab) GetC2S() interface{}

func (*QotRequestRehab) GetHeader

func (a *QotRequestRehab) GetHeader() *Header

func (*QotRequestRehab) GetProtoID

func (a *QotRequestRehab) GetProtoID() uint32

func (*QotRequestRehab) PackBody

func (a *QotRequestRehab) PackBody() ([]byte, bool)

func (*QotRequestRehab) SetC2SOption

func (a *QotRequestRehab) SetC2SOption(protoKey string, val interface{})

func (*QotRequestRehab) SetPacketID

func (a *QotRequestRehab) SetPacketID(packetID PacketID)

func (*QotRequestRehab) UnPackBody

func (a *QotRequestRehab) UnPackBody(body []byte) Response

=== no need to modify

type QotRequestTradeDate

type QotRequestTradeDate struct {
	// contains filtered or unexported fields
}

func (*QotRequestTradeDate) GetC2S

func (a *QotRequestTradeDate) GetC2S() interface{}

func (*QotRequestTradeDate) GetHeader

func (a *QotRequestTradeDate) GetHeader() *Header

func (*QotRequestTradeDate) GetProtoID

func (a *QotRequestTradeDate) GetProtoID() uint32

func (*QotRequestTradeDate) PackBody

func (a *QotRequestTradeDate) PackBody() ([]byte, bool)

func (*QotRequestTradeDate) SetC2SOption

func (a *QotRequestTradeDate) SetC2SOption(protoKey string, val interface{})

func (*QotRequestTradeDate) SetPacketID

func (a *QotRequestTradeDate) SetPacketID(packetID PacketID)

func (*QotRequestTradeDate) UnPackBody

func (a *QotRequestTradeDate) UnPackBody(body []byte) Response

=== no need to modify

type QotSetPriceReminder

type QotSetPriceReminder struct {
	// contains filtered or unexported fields
}

func (*QotSetPriceReminder) GetC2S

func (a *QotSetPriceReminder) GetC2S() interface{}

func (*QotSetPriceReminder) GetHeader

func (a *QotSetPriceReminder) GetHeader() *Header

func (*QotSetPriceReminder) GetProtoID

func (a *QotSetPriceReminder) GetProtoID() uint32

func (*QotSetPriceReminder) PackBody

func (a *QotSetPriceReminder) PackBody() ([]byte, bool)

func (*QotSetPriceReminder) SetC2SOption

func (a *QotSetPriceReminder) SetC2SOption(protoKey string, val interface{})

func (*QotSetPriceReminder) SetPacketID

func (a *QotSetPriceReminder) SetPacketID(packetID PacketID)

func (*QotSetPriceReminder) UnPackBody

func (a *QotSetPriceReminder) UnPackBody(body []byte) Response

=== no need to modify

type QotStockFilter

type QotStockFilter struct {
	// contains filtered or unexported fields
}

func (*QotStockFilter) GetC2S

func (a *QotStockFilter) GetC2S() interface{}

func (*QotStockFilter) GetHeader

func (a *QotStockFilter) GetHeader() *Header

func (*QotStockFilter) GetProtoID

func (a *QotStockFilter) GetProtoID() uint32

func (*QotStockFilter) PackBody

func (a *QotStockFilter) PackBody() ([]byte, bool)

func (*QotStockFilter) SetC2SOption

func (a *QotStockFilter) SetC2SOption(protoKey string, val interface{})

func (*QotStockFilter) SetPacketID

func (a *QotStockFilter) SetPacketID(packetID PacketID)

func (*QotStockFilter) UnPackBody

func (a *QotStockFilter) UnPackBody(body []byte) Response

=== no need to modify

type QotSub

type QotSub struct {
	// contains filtered or unexported fields
}

func (*QotSub) GetC2S

func (a *QotSub) GetC2S() interface{}

func (*QotSub) GetHeader

func (a *QotSub) GetHeader() *Header

func (*QotSub) GetProtoID

func (a *QotSub) GetProtoID() uint32

func (*QotSub) PackBody

func (a *QotSub) PackBody() ([]byte, bool)

func (*QotSub) SetC2SOption

func (a *QotSub) SetC2SOption(protoKey string, val interface{})

func (*QotSub) SetPacketID

func (a *QotSub) SetPacketID(packetID PacketID)

func (*QotSub) UnPackBody

func (a *QotSub) UnPackBody(body []byte) Response

=== no need to modify

type QotUpdateBasicQot

type QotUpdateBasicQot struct {
	// contains filtered or unexported fields
}

func (*QotUpdateBasicQot) GetC2S

func (a *QotUpdateBasicQot) GetC2S() interface{}

func (*QotUpdateBasicQot) GetHeader

func (a *QotUpdateBasicQot) GetHeader() *Header

func (*QotUpdateBasicQot) GetProtoID

func (a *QotUpdateBasicQot) GetProtoID() uint32

func (*QotUpdateBasicQot) PackBody

func (a *QotUpdateBasicQot) PackBody() ([]byte, bool)

func (*QotUpdateBasicQot) SetC2SOption

func (a *QotUpdateBasicQot) SetC2SOption(protoKey string, val interface{})

func (*QotUpdateBasicQot) SetPacketID

func (a *QotUpdateBasicQot) SetPacketID(packetID PacketID)

func (*QotUpdateBasicQot) UnPackBody

func (a *QotUpdateBasicQot) UnPackBody(body []byte) Response

=== no need to modify

type QotUpdateBroker

type QotUpdateBroker struct {
	// contains filtered or unexported fields
}

func (*QotUpdateBroker) GetC2S

func (a *QotUpdateBroker) GetC2S() interface{}

func (*QotUpdateBroker) GetHeader

func (a *QotUpdateBroker) GetHeader() *Header

func (*QotUpdateBroker) GetProtoID

func (a *QotUpdateBroker) GetProtoID() uint32

func (*QotUpdateBroker) PackBody

func (a *QotUpdateBroker) PackBody() ([]byte, bool)

func (*QotUpdateBroker) SetC2SOption

func (a *QotUpdateBroker) SetC2SOption(protoKey string, val interface{})

func (*QotUpdateBroker) SetPacketID

func (a *QotUpdateBroker) SetPacketID(packetID PacketID)

func (*QotUpdateBroker) UnPackBody

func (a *QotUpdateBroker) UnPackBody(body []byte) Response

=== no need to modify

type QotUpdateKL

type QotUpdateKL struct {
	// contains filtered or unexported fields
}

func (*QotUpdateKL) GetC2S

func (a *QotUpdateKL) GetC2S() interface{}

func (*QotUpdateKL) GetHeader

func (a *QotUpdateKL) GetHeader() *Header

func (*QotUpdateKL) GetProtoID

func (a *QotUpdateKL) GetProtoID() uint32

func (*QotUpdateKL) PackBody

func (a *QotUpdateKL) PackBody() ([]byte, bool)

func (*QotUpdateKL) SetC2SOption

func (a *QotUpdateKL) SetC2SOption(protoKey string, val interface{})

func (*QotUpdateKL) SetPacketID

func (a *QotUpdateKL) SetPacketID(packetID PacketID)

func (*QotUpdateKL) UnPackBody

func (a *QotUpdateKL) UnPackBody(body []byte) Response

=== no need to modify

type QotUpdateOrderBook

type QotUpdateOrderBook struct {
	// contains filtered or unexported fields
}

func (*QotUpdateOrderBook) GetC2S

func (a *QotUpdateOrderBook) GetC2S() interface{}

func (*QotUpdateOrderBook) GetHeader

func (a *QotUpdateOrderBook) GetHeader() *Header

func (*QotUpdateOrderBook) GetProtoID

func (a *QotUpdateOrderBook) GetProtoID() uint32

func (*QotUpdateOrderBook) PackBody

func (a *QotUpdateOrderBook) PackBody() ([]byte, bool)

func (*QotUpdateOrderBook) SetC2SOption

func (a *QotUpdateOrderBook) SetC2SOption(protoKey string, val interface{})

func (*QotUpdateOrderBook) SetPacketID

func (a *QotUpdateOrderBook) SetPacketID(packetID PacketID)

func (*QotUpdateOrderBook) UnPackBody

func (a *QotUpdateOrderBook) UnPackBody(body []byte) Response

=== no need to modify

type QotUpdatePriceReminder

type QotUpdatePriceReminder struct {
	// contains filtered or unexported fields
}

func (*QotUpdatePriceReminder) GetC2S

func (a *QotUpdatePriceReminder) GetC2S() interface{}

func (*QotUpdatePriceReminder) GetHeader

func (a *QotUpdatePriceReminder) GetHeader() *Header

func (*QotUpdatePriceReminder) GetProtoID

func (a *QotUpdatePriceReminder) GetProtoID() uint32

func (*QotUpdatePriceReminder) PackBody

func (a *QotUpdatePriceReminder) PackBody() ([]byte, bool)

func (*QotUpdatePriceReminder) SetC2SOption

func (a *QotUpdatePriceReminder) SetC2SOption(protoKey string, val interface{})

func (*QotUpdatePriceReminder) SetPacketID

func (a *QotUpdatePriceReminder) SetPacketID(packetID PacketID)

func (*QotUpdatePriceReminder) UnPackBody

func (a *QotUpdatePriceReminder) UnPackBody(body []byte) Response

=== no need to modify

type QotUpdateRT

type QotUpdateRT struct {
	// contains filtered or unexported fields
}

func (*QotUpdateRT) GetC2S

func (a *QotUpdateRT) GetC2S() interface{}

func (*QotUpdateRT) GetHeader

func (a *QotUpdateRT) GetHeader() *Header

func (*QotUpdateRT) GetProtoID

func (a *QotUpdateRT) GetProtoID() uint32

func (*QotUpdateRT) PackBody

func (a *QotUpdateRT) PackBody() ([]byte, bool)

func (*QotUpdateRT) SetC2SOption

func (a *QotUpdateRT) SetC2SOption(protoKey string, val interface{})

func (*QotUpdateRT) SetPacketID

func (a *QotUpdateRT) SetPacketID(packetID PacketID)

func (*QotUpdateRT) UnPackBody

func (a *QotUpdateRT) UnPackBody(body []byte) Response

=== no need to modify

type QotUpdateTicker

type QotUpdateTicker struct {
	// contains filtered or unexported fields
}

func (*QotUpdateTicker) GetC2S

func (a *QotUpdateTicker) GetC2S() interface{}

func (*QotUpdateTicker) GetHeader

func (a *QotUpdateTicker) GetHeader() *Header

func (*QotUpdateTicker) GetProtoID

func (a *QotUpdateTicker) GetProtoID() uint32

func (*QotUpdateTicker) PackBody

func (a *QotUpdateTicker) PackBody() ([]byte, bool)

func (*QotUpdateTicker) SetC2SOption

func (a *QotUpdateTicker) SetC2SOption(protoKey string, val interface{})

func (*QotUpdateTicker) SetPacketID

func (a *QotUpdateTicker) SetPacketID(packetID PacketID)

func (*QotUpdateTicker) UnPackBody

func (a *QotUpdateTicker) UnPackBody(body []byte) Response

=== no need to modify

type Response

type Response struct {
	RetType int32  //返回结果,参见adapt.RetType_XXX的枚举定义
	RetMsg  string //返回结果描述
	ErrCode int32  //错误码,客户端一般通过retType和retMsg来判断结果和详情,errCode只做日志记录,仅在个别协议失败时对账用
	S2C     proto.Message
	Data    map[string]interface{}
}

func DefaultErr

func DefaultErr() Response

func PackErr

func PackErr() Response

type Server

type Server struct {
	ConnID            uint64
	KeepAliveInterval int32
	ConnAESKey        string
	AesCBCiv          string
	LoginUserID       uint64
	ServerVer         int32
	UserAttribution   int32

	Encrypt bool
}

type TestCmd

type TestCmd struct {
	// contains filtered or unexported fields
}

func (*TestCmd) GetC2S

func (a *TestCmd) GetC2S() interface{}

func (*TestCmd) GetHeader

func (a *TestCmd) GetHeader() *Header

func (*TestCmd) GetProtoID

func (a *TestCmd) GetProtoID() uint32

func (*TestCmd) PackBody

func (a *TestCmd) PackBody() ([]byte, bool)

func (*TestCmd) SetC2SOption

func (a *TestCmd) SetC2SOption(protoKey string, val interface{})

func (*TestCmd) SetPacketID

func (a *TestCmd) SetPacketID(packetID PacketID)

func (*TestCmd) UnPackBody

func (a *TestCmd) UnPackBody(body []byte) Response

=== no need to modify

type TrdGetAccList

type TrdGetAccList struct {
	// contains filtered or unexported fields
}

func (*TrdGetAccList) GetC2S

func (a *TrdGetAccList) GetC2S() interface{}

func (*TrdGetAccList) GetHeader

func (a *TrdGetAccList) GetHeader() *Header

func (*TrdGetAccList) GetProtoID

func (a *TrdGetAccList) GetProtoID() uint32

func (*TrdGetAccList) PackBody

func (a *TrdGetAccList) PackBody() ([]byte, bool)

func (*TrdGetAccList) SetC2SOption

func (a *TrdGetAccList) SetC2SOption(protoKey string, val interface{})

func (*TrdGetAccList) SetPacketID

func (a *TrdGetAccList) SetPacketID(packetID PacketID)

func (*TrdGetAccList) UnPackBody

func (a *TrdGetAccList) UnPackBody(body []byte) Response

=== no need to modify

type TrdGetFunds

type TrdGetFunds struct {
	// contains filtered or unexported fields
}

func (*TrdGetFunds) GetC2S

func (a *TrdGetFunds) GetC2S() interface{}

func (*TrdGetFunds) GetHeader

func (a *TrdGetFunds) GetHeader() *Header

func (*TrdGetFunds) GetProtoID

func (a *TrdGetFunds) GetProtoID() uint32

func (*TrdGetFunds) PackBody

func (a *TrdGetFunds) PackBody() ([]byte, bool)

func (*TrdGetFunds) SetC2SOption

func (a *TrdGetFunds) SetC2SOption(protoKey string, val interface{})

func (*TrdGetFunds) SetPacketID

func (a *TrdGetFunds) SetPacketID(packetID PacketID)

func (*TrdGetFunds) UnPackBody

func (a *TrdGetFunds) UnPackBody(body []byte) Response

=== no need to modify

type TrdGetHistoryOrderFillList

type TrdGetHistoryOrderFillList struct {
	// contains filtered or unexported fields
}

func (*TrdGetHistoryOrderFillList) GetC2S

func (a *TrdGetHistoryOrderFillList) GetC2S() interface{}

func (*TrdGetHistoryOrderFillList) GetHeader

func (a *TrdGetHistoryOrderFillList) GetHeader() *Header

func (*TrdGetHistoryOrderFillList) GetProtoID

func (a *TrdGetHistoryOrderFillList) GetProtoID() uint32

func (*TrdGetHistoryOrderFillList) PackBody

func (a *TrdGetHistoryOrderFillList) PackBody() ([]byte, bool)

func (*TrdGetHistoryOrderFillList) SetC2SOption

func (a *TrdGetHistoryOrderFillList) SetC2SOption(protoKey string, val interface{})

func (*TrdGetHistoryOrderFillList) SetPacketID

func (a *TrdGetHistoryOrderFillList) SetPacketID(packetID PacketID)

func (*TrdGetHistoryOrderFillList) UnPackBody

func (a *TrdGetHistoryOrderFillList) UnPackBody(body []byte) Response

=== no need to modify

type TrdGetHistoryOrderList

type TrdGetHistoryOrderList struct {
	// contains filtered or unexported fields
}

func (*TrdGetHistoryOrderList) GetC2S

func (a *TrdGetHistoryOrderList) GetC2S() interface{}

func (*TrdGetHistoryOrderList) GetHeader

func (a *TrdGetHistoryOrderList) GetHeader() *Header

func (*TrdGetHistoryOrderList) GetProtoID

func (a *TrdGetHistoryOrderList) GetProtoID() uint32

func (*TrdGetHistoryOrderList) PackBody

func (a *TrdGetHistoryOrderList) PackBody() ([]byte, bool)

func (*TrdGetHistoryOrderList) SetC2SOption

func (a *TrdGetHistoryOrderList) SetC2SOption(protoKey string, val interface{})

func (*TrdGetHistoryOrderList) SetPacketID

func (a *TrdGetHistoryOrderList) SetPacketID(packetID PacketID)

func (*TrdGetHistoryOrderList) UnPackBody

func (a *TrdGetHistoryOrderList) UnPackBody(body []byte) Response

=== no need to modify

type TrdGetMarginRatio

type TrdGetMarginRatio struct {
	// contains filtered or unexported fields
}

func (*TrdGetMarginRatio) GetC2S

func (a *TrdGetMarginRatio) GetC2S() interface{}

func (*TrdGetMarginRatio) GetHeader

func (a *TrdGetMarginRatio) GetHeader() *Header

func (*TrdGetMarginRatio) GetProtoID

func (a *TrdGetMarginRatio) GetProtoID() uint32

func (*TrdGetMarginRatio) PackBody

func (a *TrdGetMarginRatio) PackBody() ([]byte, bool)

func (*TrdGetMarginRatio) SetC2SOption

func (a *TrdGetMarginRatio) SetC2SOption(protoKey string, val interface{})

func (*TrdGetMarginRatio) SetPacketID

func (a *TrdGetMarginRatio) SetPacketID(packetID PacketID)

func (*TrdGetMarginRatio) UnPackBody

func (a *TrdGetMarginRatio) UnPackBody(body []byte) Response

=== no need to modify

type TrdGetMaxTrdQtys

type TrdGetMaxTrdQtys struct {
	// contains filtered or unexported fields
}

func (*TrdGetMaxTrdQtys) GetC2S

func (a *TrdGetMaxTrdQtys) GetC2S() interface{}

func (*TrdGetMaxTrdQtys) GetHeader

func (a *TrdGetMaxTrdQtys) GetHeader() *Header

func (*TrdGetMaxTrdQtys) GetProtoID

func (a *TrdGetMaxTrdQtys) GetProtoID() uint32

func (*TrdGetMaxTrdQtys) PackBody

func (a *TrdGetMaxTrdQtys) PackBody() ([]byte, bool)

func (*TrdGetMaxTrdQtys) SetC2SOption

func (a *TrdGetMaxTrdQtys) SetC2SOption(protoKey string, val interface{})

func (*TrdGetMaxTrdQtys) SetPacketID

func (a *TrdGetMaxTrdQtys) SetPacketID(packetID PacketID)

func (*TrdGetMaxTrdQtys) UnPackBody

func (a *TrdGetMaxTrdQtys) UnPackBody(body []byte) Response

=== no need to modify

type TrdGetOrderFillList

type TrdGetOrderFillList struct {
	// contains filtered or unexported fields
}

func (*TrdGetOrderFillList) GetC2S

func (a *TrdGetOrderFillList) GetC2S() interface{}

func (*TrdGetOrderFillList) GetHeader

func (a *TrdGetOrderFillList) GetHeader() *Header

func (*TrdGetOrderFillList) GetProtoID

func (a *TrdGetOrderFillList) GetProtoID() uint32

func (*TrdGetOrderFillList) PackBody

func (a *TrdGetOrderFillList) PackBody() ([]byte, bool)

func (*TrdGetOrderFillList) SetC2SOption

func (a *TrdGetOrderFillList) SetC2SOption(protoKey string, val interface{})

func (*TrdGetOrderFillList) SetPacketID

func (a *TrdGetOrderFillList) SetPacketID(packetID PacketID)

func (*TrdGetOrderFillList) UnPackBody

func (a *TrdGetOrderFillList) UnPackBody(body []byte) Response

=== no need to modify

type TrdGetOrderList

type TrdGetOrderList struct {
	// contains filtered or unexported fields
}

func (*TrdGetOrderList) GetC2S

func (a *TrdGetOrderList) GetC2S() interface{}

func (*TrdGetOrderList) GetHeader

func (a *TrdGetOrderList) GetHeader() *Header

func (*TrdGetOrderList) GetProtoID

func (a *TrdGetOrderList) GetProtoID() uint32

func (*TrdGetOrderList) PackBody

func (a *TrdGetOrderList) PackBody() ([]byte, bool)

func (*TrdGetOrderList) SetC2SOption

func (a *TrdGetOrderList) SetC2SOption(protoKey string, val interface{})

func (*TrdGetOrderList) SetPacketID

func (a *TrdGetOrderList) SetPacketID(packetID PacketID)

func (*TrdGetOrderList) UnPackBody

func (a *TrdGetOrderList) UnPackBody(body []byte) Response

=== no need to modify

type TrdGetPositionList

type TrdGetPositionList struct {
	// contains filtered or unexported fields
}

func (*TrdGetPositionList) GetC2S

func (a *TrdGetPositionList) GetC2S() interface{}

func (*TrdGetPositionList) GetHeader

func (a *TrdGetPositionList) GetHeader() *Header

func (*TrdGetPositionList) GetProtoID

func (a *TrdGetPositionList) GetProtoID() uint32

func (*TrdGetPositionList) PackBody

func (a *TrdGetPositionList) PackBody() ([]byte, bool)

func (*TrdGetPositionList) SetC2SOption

func (a *TrdGetPositionList) SetC2SOption(protoKey string, val interface{})

func (*TrdGetPositionList) SetPacketID

func (a *TrdGetPositionList) SetPacketID(packetID PacketID)

func (*TrdGetPositionList) UnPackBody

func (a *TrdGetPositionList) UnPackBody(body []byte) Response

=== no need to modify

type TrdModifyOrder

type TrdModifyOrder struct {
	// contains filtered or unexported fields
}

func (*TrdModifyOrder) GetC2S

func (a *TrdModifyOrder) GetC2S() interface{}

func (*TrdModifyOrder) GetHeader

func (a *TrdModifyOrder) GetHeader() *Header

func (*TrdModifyOrder) GetProtoID

func (a *TrdModifyOrder) GetProtoID() uint32

func (*TrdModifyOrder) PackBody

func (a *TrdModifyOrder) PackBody() ([]byte, bool)

func (*TrdModifyOrder) SetC2SOption

func (a *TrdModifyOrder) SetC2SOption(protoKey string, val interface{})

func (*TrdModifyOrder) SetPacketID

func (a *TrdModifyOrder) SetPacketID(packetID PacketID)

func (*TrdModifyOrder) UnPackBody

func (a *TrdModifyOrder) UnPackBody(body []byte) Response

=== no need to modify

type TrdPlaceOrder

type TrdPlaceOrder struct {
	// contains filtered or unexported fields
}

func (*TrdPlaceOrder) GetC2S

func (a *TrdPlaceOrder) GetC2S() interface{}

func (*TrdPlaceOrder) GetHeader

func (a *TrdPlaceOrder) GetHeader() *Header

func (*TrdPlaceOrder) GetProtoID

func (a *TrdPlaceOrder) GetProtoID() uint32

func (*TrdPlaceOrder) PackBody

func (a *TrdPlaceOrder) PackBody() ([]byte, bool)

func (*TrdPlaceOrder) SetC2SOption

func (a *TrdPlaceOrder) SetC2SOption(protoKey string, val interface{})

func (*TrdPlaceOrder) SetPacketID

func (a *TrdPlaceOrder) SetPacketID(packetID PacketID)

func (*TrdPlaceOrder) UnPackBody

func (a *TrdPlaceOrder) UnPackBody(body []byte) Response

=== no need to modify

type TrdStock

type TrdStock struct {
	Code      string
	SecMarket int32
}

trd

func StockToTrd

func StockToTrd(stock string) *TrdStock

type TrdSubAccPush

type TrdSubAccPush struct {
	// contains filtered or unexported fields
}

func (*TrdSubAccPush) GetC2S

func (a *TrdSubAccPush) GetC2S() interface{}

func (*TrdSubAccPush) GetHeader

func (a *TrdSubAccPush) GetHeader() *Header

func (*TrdSubAccPush) GetProtoID

func (a *TrdSubAccPush) GetProtoID() uint32

func (*TrdSubAccPush) PackBody

func (a *TrdSubAccPush) PackBody() ([]byte, bool)

func (*TrdSubAccPush) SetC2SOption

func (a *TrdSubAccPush) SetC2SOption(protoKey string, val interface{})

func (*TrdSubAccPush) SetPacketID

func (a *TrdSubAccPush) SetPacketID(packetID PacketID)

func (*TrdSubAccPush) UnPackBody

func (a *TrdSubAccPush) UnPackBody(body []byte) Response

=== no need to modify

type TrdUnlockTrade

type TrdUnlockTrade struct {
	// contains filtered or unexported fields
}

func (*TrdUnlockTrade) GetC2S

func (a *TrdUnlockTrade) GetC2S() interface{}

func (*TrdUnlockTrade) GetHeader

func (a *TrdUnlockTrade) GetHeader() *Header

func (*TrdUnlockTrade) GetProtoID

func (a *TrdUnlockTrade) GetProtoID() uint32

func (*TrdUnlockTrade) PackBody

func (a *TrdUnlockTrade) PackBody() ([]byte, bool)

func (*TrdUnlockTrade) SetC2SOption

func (a *TrdUnlockTrade) SetC2SOption(protoKey string, val interface{})

func (*TrdUnlockTrade) SetPacketID

func (a *TrdUnlockTrade) SetPacketID(packetID PacketID)

func (*TrdUnlockTrade) UnPackBody

func (a *TrdUnlockTrade) UnPackBody(body []byte) Response

=== no need to modify

type TrdUpdateOrder

type TrdUpdateOrder struct {
	// contains filtered or unexported fields
}

func (*TrdUpdateOrder) GetC2S

func (a *TrdUpdateOrder) GetC2S() interface{}

func (*TrdUpdateOrder) GetHeader

func (a *TrdUpdateOrder) GetHeader() *Header

func (*TrdUpdateOrder) GetProtoID

func (a *TrdUpdateOrder) GetProtoID() uint32

func (*TrdUpdateOrder) PackBody

func (a *TrdUpdateOrder) PackBody() ([]byte, bool)

func (*TrdUpdateOrder) SetC2SOption

func (a *TrdUpdateOrder) SetC2SOption(protoKey string, val interface{})

func (*TrdUpdateOrder) SetPacketID

func (a *TrdUpdateOrder) SetPacketID(packetID PacketID)

func (*TrdUpdateOrder) UnPackBody

func (a *TrdUpdateOrder) UnPackBody(body []byte) Response

=== no need to modify

type TrdUpdateOrderFill

type TrdUpdateOrderFill struct {
	// contains filtered or unexported fields
}

func (*TrdUpdateOrderFill) GetC2S

func (a *TrdUpdateOrderFill) GetC2S() interface{}

func (*TrdUpdateOrderFill) GetHeader

func (a *TrdUpdateOrderFill) GetHeader() *Header

func (*TrdUpdateOrderFill) GetProtoID

func (a *TrdUpdateOrderFill) GetProtoID() uint32

func (*TrdUpdateOrderFill) PackBody

func (a *TrdUpdateOrderFill) PackBody() ([]byte, bool)

func (*TrdUpdateOrderFill) SetC2SOption

func (a *TrdUpdateOrderFill) SetC2SOption(protoKey string, val interface{})

func (*TrdUpdateOrderFill) SetPacketID

func (a *TrdUpdateOrderFill) SetPacketID(packetID PacketID)

func (*TrdUpdateOrderFill) UnPackBody

func (a *TrdUpdateOrderFill) UnPackBody(body []byte) Response

=== no need to modify

type Verification

type Verification struct {
	// contains filtered or unexported fields
}

func (*Verification) GetC2S

func (a *Verification) GetC2S() interface{}

func (*Verification) GetHeader

func (a *Verification) GetHeader() *Header

func (*Verification) GetProtoID

func (a *Verification) GetProtoID() uint32

func (*Verification) PackBody

func (a *Verification) PackBody() ([]byte, bool)

func (*Verification) SetC2SOption

func (a *Verification) SetC2SOption(protoKey string, val interface{})

func (*Verification) SetPacketID

func (a *Verification) SetPacketID(packetID PacketID)

func (*Verification) UnPackBody

func (a *Verification) UnPackBody(body []byte) Response

=== no need to modify

Jump to

Keyboard shortcuts

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