thrift_nats

package
v0.0.0-...-c28da18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2016 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NATSTransportFactory

func NATSTransportFactory(conn *nats.Conn, subject string,
	timeout, readTimeout time.Duration) (thrift.TTransport, error)

NATSTransportFactory returns a new thrift TTransport which uses the NATS messaging system as the underlying transport. This TTransport can only be used with NATSServer.

func NewNATSServer

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

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 NewNATSServerFactory7

func NewNATSServerFactory7(
	conn *nats.Conn,
	subject string,
	clientTimeout time.Duration,
	heartbeatDeadline time.Duration,
	processorFactory thrift.TProcessorFactory,
	transportFactory thrift.TTransportFactory,
	protocolFactory thrift.TProtocolFactory) thrift.TServer

func NewNATSServerFactory9

func NewNATSServerFactory9(
	conn *nats.Conn,
	subject string,
	clientTimeout time.Duration,
	heartbeatDeadline time.Duration,
	processorFactory thrift.TProcessorFactory,
	inputTransportFactory thrift.TTransportFactory,
	outputTransportFactory thrift.TTransportFactory,
	inputProtocolFactory thrift.TProtocolFactory,
	outputProtocolFactory thrift.TProtocolFactory) thrift.TServer

func NewNATSTransport

func NewNATSTransport(conn *nats.Conn, listenTo, replyTo, heartbeat string,
	readTimeout, heartbeatInterval time.Duration) thrift.TTransport

NewNATSTransport returns a Thrift TTransport which uses the NATS messaging system as the underlying transport. This TTransport can only be used with NATSServer.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL