當前位置: 首頁>>代碼示例>>Golang>>正文


Golang thrift.TProtocolFactory類代碼示例

本文整理匯總了Golang中github.com/apache/thrift/lib/go/thrift.TProtocolFactory的典型用法代碼示例。如果您正苦於以下問題:Golang TProtocolFactory類的具體用法?Golang TProtocolFactory怎麽用?Golang TProtocolFactory使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了TProtocolFactory類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Golang代碼示例。

示例1: NewAccountClientFactory

func NewAccountClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *AccountClient {
	return &AccountClient{Transport: t,
		ProtocolFactory: f,
		InputProtocol:   f.GetProtocol(t),
		OutputProtocol:  f.GetProtocol(t),
		SeqId:           0,
	}
}
開發者ID:LC2010,項目名稱:thrift-step-by-step-go,代碼行數:8,代碼來源:account.go

示例2: NewSimpleServiceClientFactory

func NewSimpleServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *SimpleServiceClient {
	return &SimpleServiceClient{Transport: t,
		ProtocolFactory: f,
		InputProtocol:   f.GetProtocol(t),
		OutputProtocol:  f.GetProtocol(t),
		SeqId:           0,
	}
}
開發者ID:pengzhai,項目名稱:tchannel,代碼行數:8,代碼來源:simpleservice.go

示例3: NewHyperbahnClientFactory

func NewHyperbahnClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *HyperbahnClient {
	return &HyperbahnClient{Transport: t,
		ProtocolFactory: f,
		InputProtocol:   f.GetProtocol(t),
		OutputProtocol:  f.GetProtocol(t),
		SeqId:           0,
	}
}
開發者ID:uber,項目名稱:tchannel-go,代碼行數:8,代碼來源:hyperbahn.go

示例4: NewPingPongClientFactory

func NewPingPongClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *PingPongClient {
	return &PingPongClient{Transport: t,
		ProtocolFactory: f,
		InputProtocol:   f.GetProtocol(t),
		OutputProtocol:  f.GetProtocol(t),
		SeqId:           0,
	}
}
開發者ID:dansimau,項目名稱:ringpop-go,代碼行數:8,代碼來源:pingpong.go

示例5: NewTCollectorClientFactory

func NewTCollectorClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *TCollectorClient {
	return &TCollectorClient{Transport: t,
		ProtocolFactory: f,
		InputProtocol:   f.GetProtocol(t),
		OutputProtocol:  f.GetProtocol(t),
		SeqId:           0,
	}
}
開發者ID:hustxiaoc,項目名稱:tchannel,代碼行數:8,代碼來源:tcollector.go


注:本文中的github.com/apache/thrift/lib/go/thrift.TProtocolFactory類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。