func NewNATSServer(
	conn *nats.Conn,
	subject string,
	clientTimeout time.Duration,
	heartbeatDeadline time.Duration,
	processor thrift.TProcessor,
	transportFactory thrift.TTransportFactory,
	protocolFactory thrift.TProtocolFactory) thrift.TServer {

	return NewNATSServerFactory7(
		conn,
		subject,
		clientTimeout,
		heartbeatDeadline,
		thrift.NewTProcessorFactory(processor),
		transportFactory,
		protocolFactory,
	)
}
// NewNATSServer returns a Thrift TServer which uses the NATS messaging system
// as the underlying transport. The subject is the NATS subject used for
// connection handshakes. The client timeout controls the read timeout on the
// client connection (negative value for no timeout). The heartbeat deadline
// controls how long clients have to respond with a heartbeat (negative value
// for no heartbeats).
NewNATSServer returns a Thrift TServer which uses the NATS messaging system
as the underlying transport. The subject is the NATS subject used for
connection handshakes. The client timeout controls the read timeout on the
client connection (negative value for no timeout). The heartbeat deadline
controls how long clients have to respond with a heartbeat (negative value
for no heartbeats).
// NewNATSServer returns a Thrift TServer which uses the NATS messaging system // as the underlying transport . The subject is the NATS subject used for // connection handshakes . The client timeout controls the read timeout on the // client connection ( negative value for no timeout ) . The heartbeat deadline // controls how long clients have to respond with a heartbeat ( negative value // for no heartbeats ) .
func NewNATSServer(
	conn *nats.Conn,
	subject string,
	clientTimeout time.Duration,
	heartbeatDeadline time.Duration,
	processor thrift.TProcessor,
	transportFactory thrift.TTransportFactory,
	protocolFactory thrift.TProtocolFactory) thrift.TServer {
	return NewNATSServerFactory7(
		conn,
		subject,
		clientTimeout,
		heartbeatDeadline,
		thrift.NewTProcessorFactory(processor),
		transportFactory,
		protocolFactory,
	)
}
func NewNATSServer ( conn * nats . Conn , subject string , clientTimeout time . Duration , heartbeatDeadline time . Duration , processor thrift . TProcessor , transportFactory thrift . TTransportFactory , protocolFactory thrift . TProtocolFactory ) thrift . TServer { return NewNATSServerFactory7 ( conn , subject , clientTimeout , heartbeatDeadline , thrift . NewTProcessorFactory ( processor ) , transportFactory , protocolFactory , ) }
NewNATSServer returns a Thrift TServer which uses the NATS messaging system
as the underlying transport.
NewNATSServer returns a Thrift TServer which uses the NATS messaging system as the underlying transport .