Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPOptions ¶
HTTPOptions are used to create a HTTP transport.
type TChannelOptions ¶
type TChannelOptions struct { // SourceService is the service name on the source side. SourceService string // TargetService is the service name being targeted. TargetService string // LogLevel overrides the default LogLevel (Warn). LogLevel *tchannel.LogLevel // HostPorts is a list of host:ports to add to the channel. HostPorts []string // Encoding is used to set the TChannel format ("as" header). Encoding string // TraceSampleRate sets the sample rate for tracing. TraceSampleRate float64 // TransportOpts are a list of options, mostly used to add or override // TChannel's transport headers. TransportOpts map[string]string }
TChannelOptions are used to create a TChannel transport.
type Transport ¶
Transport defines the interface for the underlying transport over which calls are made.
func HTTP ¶
func HTTP(opts HTTPOptions) (Transport, error)
HTTP returns a transport that calls a HTTP service.
func TChannel ¶
func TChannel(opts TChannelOptions) (Transport, error)
TChannel returns a Transport that calls a TChannel service.
Click to show internal directories.
Click to hide internal directories.