tchannel

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2016 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const BaggageHeaderPrefix = "Context-"

BaggageHeaderPrefix is the prefix added to context headers over the wire.

Application headers MUST NOT start with this.

Variables

This section is empty.

Functions

func NewOutbound

func NewOutbound(ch *tchannel.Channel, options ...OutboundOption) transport.Outbound

NewOutbound builds a new TChannel outbound which uses the given Channel to make requests.

Types

type Inbound

type Inbound interface {
	transport.Inbound

	// Returns the underlying Channel for this Inbound.
	Channel() *tchannel.Channel
}

Inbound is a TChannel Inbound.

func NewInbound

func NewInbound(ch *tchannel.Channel, opts ...InboundOption) Inbound

NewInbound builds a new TChannel inbound from the given Channel. Existing methods registered on the channel remain registered and are preferred when a call is received.

type InboundOption

type InboundOption func(*inbound)

InboundOption configures Inbound.

func ListenAddr

func ListenAddr(addr string) InboundOption

ListenAddr changes the address on which the TChannel server will listen for connections. By default, the server listens on an OS-assigned port.

This option has no effect if the Chanel provided to NewInbound is already listening for connections when Start() is called.

type OutboundOption

type OutboundOption func(*outbound)

OutboundOption configures Outbound.

func HostPort

func HostPort(hostPort string) OutboundOption

HostPort specifies that the requests made by this outbound should be to the given address.

By default, if HostPort was not specified, the Outbound will use the TChannel global peer list.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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