MCPcopy Create free account
hub / github.com/apache/iotdb-client-go / getProtocolFactory

Function getProtocolFactory

client/session.go:206–212  ·  view source on GitHub ↗
(enableRPCCompression bool)

Source from the content-addressed store, hash-verified

204}
205
206func getProtocolFactory(enableRPCCompression bool) thrift.TProtocolFactory {
207 if enableRPCCompression {
208 return thrift.NewTCompactProtocolFactoryConf(&thrift.TConfiguration{})
209 } else {
210 return thrift.NewTBinaryProtocolFactoryConf(&thrift.TConfiguration{})
211 }
212}
213
214func (s *Session) Close() error {
215 req := rpc.NewTSCloseSessionReq()

Callers 2

OpenMethod · 0.85
OpenClusterMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…