当前位置: 首页>>代码示例>>Golang>>正文


Golang fixt11.NewHeader函数代码示例

本文整理汇总了Golang中github.com/quickfixgo/quickfix/fixt11.NewHeader函数的典型用法代码示例。如果您正苦于以下问题:Golang NewHeader函数的具体用法?Golang NewHeader怎么用?Golang NewHeader使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了NewHeader函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。

示例1: New

//New returns a Logout initialized with the required fields for Logout
func New() (m Logout) {
	m.Header = fixt11.NewHeader()
	m.Init()
	m.Trailer.Init()

	m.Header.Set(field.NewMsgType("5"))

	return
}
开发者ID:cbusbey,项目名称:quickfix,代码行数:10,代码来源:Logout.generated.go

示例2: New

//New returns a Heartbeat initialized with the required fields for Heartbeat
func New() (m Heartbeat) {
	m.Header = fixt11.NewHeader()
	m.Init()
	m.Trailer.Init()

	m.Header.Set(field.NewMsgType("0"))

	return
}
开发者ID:cbusbey,项目名称:quickfix,代码行数:10,代码来源:Heartbeat.generated.go

示例3: New

//New returns a BidResponse initialized with the required fields for BidResponse
func New() (m BidResponse) {
	m.Header = fixt11.NewHeader()
	m.Init()
	m.Trailer.Init()

	m.Header.Set(field.NewMsgType("l"))

	return
}
开发者ID:cbusbey,项目名称:quickfix,代码行数:10,代码来源:BidResponse.generated.go

示例4: New

//New returns a TradingSessionList initialized with the required fields for TradingSessionList
func New() (m TradingSessionList) {
	m.Header = fixt11.NewHeader()
	m.Init()
	m.Trailer.Init()

	m.Header.Set(field.NewMsgType("BJ"))

	return
}
开发者ID:cbusbey,项目名称:quickfix,代码行数:10,代码来源:TradingSessionList.generated.go

示例5: New

//New returns a UserNotification initialized with the required fields for UserNotification
func New(userstatus field.UserStatusField) (m UserNotification) {
	m.Header = fixt11.NewHeader()
	m.Init()
	m.Trailer.Init()

	m.Header.Set(field.NewMsgType("CB"))
	m.Set(userstatus)

	return
}
开发者ID:cbusbey,项目名称:quickfix,代码行数:11,代码来源:UserNotification.generated.go

示例6: New

//New returns a Reject initialized with the required fields for Reject
func New(refseqnum field.RefSeqNumField) (m Reject) {
	m.Header = fixt11.NewHeader()
	m.Init()
	m.Trailer.Init()

	m.Header.Set(field.NewMsgType("3"))
	m.Set(refseqnum)

	return
}
开发者ID:cbusbey,项目名称:quickfix,代码行数:11,代码来源:Reject.generated.go

示例7: New

//New returns a PartyDetailsListRequest initialized with the required fields for PartyDetailsListRequest
func New(partydetailslistrequestid field.PartyDetailsListRequestIDField) (m PartyDetailsListRequest) {
	m.Header = fixt11.NewHeader()
	m.Init()
	m.Trailer.Init()

	m.Header.Set(field.NewMsgType("CF"))
	m.Set(partydetailslistrequestid)

	return
}
开发者ID:cbusbey,项目名称:quickfix,代码行数:11,代码来源:PartyDetailsListRequest.generated.go

示例8: New

//New returns a SequenceReset initialized with the required fields for SequenceReset
func New(newseqno field.NewSeqNoField) (m SequenceReset) {
	m.Header = fixt11.NewHeader()
	m.Init()
	m.Trailer.Init()

	m.Header.Set(field.NewMsgType("4"))
	m.Set(newseqno)

	return
}
开发者ID:cbusbey,项目名称:quickfix,代码行数:11,代码来源:SequenceReset.generated.go

示例9: New

//New returns a SecurityTypeRequest initialized with the required fields for SecurityTypeRequest
func New(securityreqid field.SecurityReqIDField) (m SecurityTypeRequest) {
	m.Header = fixt11.NewHeader()
	m.Init()
	m.Trailer.Init()

	m.Header.Set(field.NewMsgType("v"))
	m.Set(securityreqid)

	return
}
开发者ID:cbusbey,项目名称:quickfix,代码行数:11,代码来源:SecurityTypeRequest.generated.go

示例10: New

//New returns a ApplicationMessageRequestAck initialized with the required fields for ApplicationMessageRequestAck
func New(applresponseid field.ApplResponseIDField) (m ApplicationMessageRequestAck) {
	m.Header = fixt11.NewHeader()
	m.Init()
	m.Trailer.Init()

	m.Header.Set(field.NewMsgType("BX"))
	m.Set(applresponseid)

	return
}
开发者ID:cbusbey,项目名称:quickfix,代码行数:11,代码来源:ApplicationMessageRequestAck.generated.go

示例11: New

//New returns a Logout initialized with the required fields for Logout
func New() (m Logout) {
	m.Message = quickfix.NewMessage()
	m.Header = fixt11.NewHeader(&m.Message.Header)
	m.Body = &m.Message.Body
	m.Trailer.Trailer = &m.Message.Trailer

	m.Header.Set(field.NewMsgType("5"))

	return
}
开发者ID:quickfixgo,项目名称:quickfix,代码行数:11,代码来源:Logout.generated.go

示例12: New

//New returns a AllocationReportAck initialized with the required fields for AllocationReportAck
func New(allocreportid field.AllocReportIDField) (m AllocationReportAck) {
	m.Header = fixt11.NewHeader()
	m.Init()
	m.Trailer.Init()

	m.Header.Set(field.NewMsgType("AT"))
	m.Set(allocreportid)

	return
}
开发者ID:cbusbey,项目名称:quickfix,代码行数:11,代码来源:AllocationReportAck.generated.go

示例13: New

//New returns a TestRequest initialized with the required fields for TestRequest
func New(testreqid field.TestReqIDField) (m TestRequest) {
	m.Header = fixt11.NewHeader()
	m.Init()
	m.Trailer.Init()

	m.Header.Set(field.NewMsgType("1"))
	m.Set(testreqid)

	return
}
开发者ID:cbusbey,项目名称:quickfix,代码行数:11,代码来源:TestRequest.generated.go

示例14: New

//New returns a TradingSessionList initialized with the required fields for TradingSessionList
func New() (m TradingSessionList) {
	m.Message = quickfix.NewMessage()
	m.Header = fixt11.NewHeader(&m.Message.Header)
	m.Body = &m.Message.Body
	m.Trailer.Trailer = &m.Message.Trailer

	m.Header.Set(field.NewMsgType("BJ"))

	return
}
开发者ID:quickfixgo,项目名称:quickfix,代码行数:11,代码来源:TradingSessionList.generated.go

示例15: New

//New returns a ListStatusRequest initialized with the required fields for ListStatusRequest
func New(listid field.ListIDField) (m ListStatusRequest) {
	m.Header = fixt11.NewHeader()
	m.Init()
	m.Trailer.Init()

	m.Header.Set(field.NewMsgType("M"))
	m.Set(listid)

	return
}
开发者ID:cbusbey,项目名称:quickfix,代码行数:11,代码来源:ListStatusRequest.generated.go


注:本文中的github.com/quickfixgo/quickfix/fixt11.NewHeader函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。