本文整理汇总了Golang中github.com/quickfixgo/quickfix/fix43.NewHeader函数的典型用法代码示例。如果您正苦于以下问题:Golang NewHeader函数的具体用法?Golang NewHeader怎么用?Golang NewHeader使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了NewHeader函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: New
//New returns a MarketDataIncrementalRefresh initialized with the required fields for MarketDataIncrementalRefresh
func New() (m MarketDataIncrementalRefresh) {
m.Header = fix43.NewHeader()
m.Init()
m.Trailer.Init()
m.Header.Set(field.NewMsgType("X"))
return
}
示例2: New
//New returns a Heartbeat initialized with the required fields for Heartbeat
func New() (m Heartbeat) {
m.Header = fix43.NewHeader()
m.Init()
m.Trailer.Init()
m.Header.Set(field.NewMsgType("0"))
return
}
示例3: New
//New returns a MarketDataSnapshotFullRefresh initialized with the required fields for MarketDataSnapshotFullRefresh
func New() (m MarketDataSnapshotFullRefresh) {
m.Header = fix43.NewHeader()
m.Init()
m.Trailer.Init()
m.Header.Set(field.NewMsgType("W"))
return
}
示例4: New
//New returns a QuoteStatusRequest initialized with the required fields for QuoteStatusRequest
func New() (m QuoteStatusRequest) {
m.Header = fix43.NewHeader()
m.Init()
m.Trailer.Init()
m.Header.Set(field.NewMsgType("a"))
return
}
示例5: New
//New returns a SecurityStatus initialized with the required fields for SecurityStatus
func New() (m SecurityStatus) {
m.Header = fix43.NewHeader()
m.Init()
m.Trailer.Init()
m.Header.Set(field.NewMsgType("f"))
return
}
示例6: New
//New returns a BidResponse initialized with the required fields for BidResponse
func New() (m BidResponse) {
m.Header = fix43.NewHeader()
m.Init()
m.Trailer.Init()
m.Header.Set(field.NewMsgType("l"))
return
}
示例7: New
//New returns a Logout initialized with the required fields for Logout
func New() (m Logout) {
m.Header = fix43.NewHeader()
m.Init()
m.Trailer.Init()
m.Header.Set(field.NewMsgType("5"))
return
}
示例8: New
//New returns a Heartbeat initialized with the required fields for Heartbeat
func New() (m Heartbeat) {
m.Message = quickfix.NewMessage()
m.Header = fix43.NewHeader(&m.Message.Header)
m.Body = &m.Message.Body
m.Trailer.Trailer = &m.Message.Trailer
m.Header.Set(field.NewMsgType("0"))
return
}
示例9: New
//New returns a ListStatusRequest initialized with the required fields for ListStatusRequest
func New(listid field.ListIDField) (m ListStatusRequest) {
m.Header = fix43.NewHeader()
m.Init()
m.Trailer.Init()
m.Header.Set(field.NewMsgType("M"))
m.Set(listid)
return
}
示例10: New
//New returns a TestRequest initialized with the required fields for TestRequest
func New(testreqid field.TestReqIDField) (m TestRequest) {
m.Header = fix43.NewHeader()
m.Init()
m.Trailer.Init()
m.Header.Set(field.NewMsgType("1"))
m.Set(testreqid)
return
}
示例11: New
//New returns a Quote initialized with the required fields for Quote
func New(quoteid field.QuoteIDField) (m Quote) {
m.Header = fix43.NewHeader()
m.Init()
m.Trailer.Init()
m.Header.Set(field.NewMsgType("S"))
m.Set(quoteid)
return
}
示例12: New
//New returns a News initialized with the required fields for News
func New(headline field.HeadlineField) (m News) {
m.Header = fix43.NewHeader()
m.Init()
m.Trailer.Init()
m.Header.Set(field.NewMsgType("B"))
m.Set(headline)
return
}
示例13: New
//New returns a SecurityTypeRequest initialized with the required fields for SecurityTypeRequest
func New(securityreqid field.SecurityReqIDField) (m SecurityTypeRequest) {
m.Header = fix43.NewHeader()
m.Init()
m.Trailer.Init()
m.Header.Set(field.NewMsgType("v"))
m.Set(securityreqid)
return
}
示例14: New
//New returns a QuoteStatusRequest initialized with the required fields for QuoteStatusRequest
func New() (m QuoteStatusRequest) {
m.Message = quickfix.NewMessage()
m.Header = fix43.NewHeader(&m.Message.Header)
m.Body = &m.Message.Body
m.Trailer.Trailer = &m.Message.Trailer
m.Header.Set(field.NewMsgType("a"))
return
}
示例15: New
//New returns a RFQRequest initialized with the required fields for RFQRequest
func New(rfqreqid field.RFQReqIDField) (m RFQRequest) {
m.Header = fix43.NewHeader()
m.Init()
m.Trailer.Init()
m.Header.Set(field.NewMsgType("AH"))
m.Set(rfqreqid)
return
}