本文整理汇总了Golang中github.com/quickfixgo/quickfix/fix41.NewHeader函数的典型用法代码示例。如果您正苦于以下问题:Golang NewHeader函数的具体用法?Golang NewHeader怎么用?Golang NewHeader使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了NewHeader函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Golang代码示例。
示例1: New
//New returns a Logout initialized with the required fields for Logout
func New() (m Logout) {
m.Header = fix41.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 = fix41.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 Reject initialized with the required fields for Reject
func New(refseqnum field.RefSeqNumField) (m Reject) {
m.Header = fix41.NewHeader()
m.Init()
m.Trailer.Init()
m.Header.Set(field.NewMsgType("3"))
m.Set(refseqnum)
return
}
开发者ID:cbusbey,项目名称:quickfix,代码行数:11,代码来源:Reject.generated.go
示例4: New
//New returns a SequenceReset initialized with the required fields for SequenceReset
func New(newseqno field.NewSeqNoField) (m SequenceReset) {
m.Header = fix41.NewHeader()
m.Init()
m.Trailer.Init()
m.Header.Set(field.NewMsgType("4"))
m.Set(newseqno)
return
}
开发者ID:cbusbey,项目名称:quickfix,代码行数:11,代码来源:SequenceReset.generated.go
示例5: New
//New returns a ListExecute initialized with the required fields for ListExecute
func New(listid field.ListIDField) (m ListExecute) {
m.Header = fix41.NewHeader()
m.Init()
m.Trailer.Init()
m.Header.Set(field.NewMsgType("L"))
m.Set(listid)
return
}
开发者ID:cbusbey,项目名称:quickfix,代码行数:11,代码来源:ListExecute.generated.go
示例6: New
//New returns a News initialized with the required fields for News
func New(headline field.HeadlineField) (m News) {
m.Header = fix41.NewHeader()
m.Init()
m.Trailer.Init()
m.Header.Set(field.NewMsgType("B"))
m.Set(headline)
return
}
开发者ID:cbusbey,项目名称:quickfix,代码行数:11,代码来源:News.generated.go
示例7: New
//New returns a ListCancelRequest initialized with the required fields for ListCancelRequest
func New(listid field.ListIDField) (m ListCancelRequest) {
m.Header = fix41.NewHeader()
m.Init()
m.Trailer.Init()
m.Header.Set(field.NewMsgType("K"))
m.Set(listid)
return
}
开发者ID:cbusbey,项目名称:quickfix,代码行数:11,代码来源:ListCancelRequest.generated.go
示例8: New
//New returns a TestRequest initialized with the required fields for TestRequest
func New(testreqid field.TestReqIDField) (m TestRequest) {
m.Header = fix41.NewHeader()
m.Init()
m.Trailer.Init()
m.Header.Set(field.NewMsgType("1"))
m.Set(testreqid)
return
}
开发者ID:cbusbey,项目名称:quickfix,代码行数:11,代码来源:TestRequest.generated.go
示例9: New
//New returns a Heartbeat initialized with the required fields for Heartbeat
func New() (m Heartbeat) {
m.Message = quickfix.NewMessage()
m.Header = fix41.NewHeader(&m.Message.Header)
m.Body = &m.Message.Body
m.Trailer.Trailer = &m.Message.Trailer
m.Header.Set(field.NewMsgType("0"))
return
}
开发者ID:quickfixgo,项目名称:quickfix,代码行数:11,代码来源:Heartbeat.generated.go
示例10: New
//New returns a Logon initialized with the required fields for Logon
func New(encryptmethod field.EncryptMethodField, heartbtint field.HeartBtIntField) (m Logon) {
m.Header = fix41.NewHeader()
m.Init()
m.Trailer.Init()
m.Header.Set(field.NewMsgType("A"))
m.Set(encryptmethod)
m.Set(heartbtint)
return
}
开发者ID:cbusbey,项目名称:quickfix,代码行数:12,代码来源:Logon.generated.go
示例11: New
//New returns a SequenceReset initialized with the required fields for SequenceReset
func New(newseqno field.NewSeqNoField) (m SequenceReset) {
m.Message = quickfix.NewMessage()
m.Header = fix41.NewHeader(&m.Message.Header)
m.Body = &m.Message.Body
m.Trailer.Trailer = &m.Message.Trailer
m.Header.Set(field.NewMsgType("4"))
m.Set(newseqno)
return
}
开发者ID:quickfixgo,项目名称:quickfix,代码行数:12,代码来源:SequenceReset.generated.go
示例12: New
//New returns a TestRequest initialized with the required fields for TestRequest
func New(testreqid field.TestReqIDField) (m TestRequest) {
m.Message = quickfix.NewMessage()
m.Header = fix41.NewHeader(&m.Message.Header)
m.Body = &m.Message.Body
m.Trailer.Trailer = &m.Message.Trailer
m.Header.Set(field.NewMsgType("1"))
m.Set(testreqid)
return
}
开发者ID:quickfixgo,项目名称:quickfix,代码行数:12,代码来源:TestRequest.generated.go
示例13: New
//New returns a Quote initialized with the required fields for Quote
func New(quoteid field.QuoteIDField, symbol field.SymbolField) (m Quote) {
m.Header = fix41.NewHeader()
m.Init()
m.Trailer.Init()
m.Header.Set(field.NewMsgType("S"))
m.Set(quoteid)
m.Set(symbol)
return
}
开发者ID:cbusbey,项目名称:quickfix,代码行数:12,代码来源:Quote.generated.go
示例14: New
//New returns a ListStatusRequest initialized with the required fields for ListStatusRequest
func New(listid field.ListIDField) (m ListStatusRequest) {
m.Message = quickfix.NewMessage()
m.Header = fix41.NewHeader(&m.Message.Header)
m.Body = &m.Message.Body
m.Trailer.Trailer = &m.Message.Trailer
m.Header.Set(field.NewMsgType("M"))
m.Set(listid)
return
}
开发者ID:quickfixgo,项目名称:quickfix,代码行数:12,代码来源:ListStatusRequest.generated.go
示例15: New
//New returns a News initialized with the required fields for News
func New(headline field.HeadlineField) (m News) {
m.Message = quickfix.NewMessage()
m.Header = fix41.NewHeader(&m.Message.Header)
m.Body = &m.Message.Body
m.Trailer.Trailer = &m.Message.Trailer
m.Header.Set(field.NewMsgType("B"))
m.Set(headline)
return
}
开发者ID:quickfixgo,项目名称:quickfix,代码行数:12,代码来源:News.generated.go
示例16: New
//New returns a ResendRequest initialized with the required fields for ResendRequest
func New(beginseqno field.BeginSeqNoField, endseqno field.EndSeqNoField) (m ResendRequest) {
m.Header = fix41.NewHeader()
m.Init()
m.Trailer.Init()
m.Header.Set(field.NewMsgType("2"))
m.Set(beginseqno)
m.Set(endseqno)
return
}
开发者ID:cbusbey,项目名称:quickfix,代码行数:12,代码来源:ResendRequest.generated.go
示例17: New
//New returns a Reject initialized with the required fields for Reject
func New(refseqnum field.RefSeqNumField) (m Reject) {
m.Message = quickfix.NewMessage()
m.Header = fix41.NewHeader(&m.Message.Header)
m.Body = &m.Message.Body
m.Trailer.Trailer = &m.Message.Trailer
m.Header.Set(field.NewMsgType("3"))
m.Set(refseqnum)
return
}
开发者ID:quickfixgo,项目名称:quickfix,代码行数:12,代码来源:Reject.generated.go
示例18: New
//New returns a ResendRequest initialized with the required fields for ResendRequest
func New(beginseqno field.BeginSeqNoField, endseqno field.EndSeqNoField) (m ResendRequest) {
m.Message = quickfix.NewMessage()
m.Header = fix41.NewHeader(&m.Message.Header)
m.Body = &m.Message.Body
m.Trailer.Trailer = &m.Message.Trailer
m.Header.Set(field.NewMsgType("2"))
m.Set(beginseqno)
m.Set(endseqno)
return
}
开发者ID:quickfixgo,项目名称:quickfix,代码行数:13,代码来源:ResendRequest.generated.go
示例19: New
//New returns a QuoteRequest initialized with the required fields for QuoteRequest
func New(quotereqid field.QuoteReqIDField, symbol field.SymbolField) (m QuoteRequest) {
m.Message = quickfix.NewMessage()
m.Header = fix41.NewHeader(&m.Message.Header)
m.Body = &m.Message.Body
m.Trailer.Trailer = &m.Message.Trailer
m.Header.Set(field.NewMsgType("R"))
m.Set(quotereqid)
m.Set(symbol)
return
}
开发者ID:quickfixgo,项目名称:quickfix,代码行数:13,代码来源:QuoteRequest.generated.go
示例20: New
//New returns a DontKnowTrade initialized with the required fields for DontKnowTrade
func New(dkreason field.DKReasonField, symbol field.SymbolField, side field.SideField) (m DontKnowTrade) {
m.Header = fix41.NewHeader()
m.Init()
m.Trailer.Init()
m.Header.Set(field.NewMsgType("Q"))
m.Set(dkreason)
m.Set(symbol)
m.Set(side)
return
}
开发者ID:cbusbey,项目名称:quickfix,代码行数:13,代码来源:DontKnowTrade.generated.go
注:本文中的github.com/quickfixgo/quickfix/fix41.NewHeader函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论