Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Inbound ¶
type Inbound struct {
// contains filtered or unexported fields
}
Inbound receives Oneway YARPC requests over Cherami.
func (*Inbound) SetRouter ¶
SetRouter configures a router to handle incoming requests. This satisfies the transport.Inbound interface, and would be called by a dispatcher when it starts.
func (*Inbound) Transports ¶
Transports returns the transport that the inbound uses.
type InboundConfig ¶
InboundConfig defines the config in order to create a Inbound.
PrefetchCount controls the number of messages to buffer locally. Inbounds which process messages very fast may want to specify larger value for PrefetchCount for faster throughput. On the flip side larger values for PrefetchCount will result in more messages being buffered locally causing high memory footprint.
type Outbound ¶
type Outbound struct {
// contains filtered or unexported fields
}
Outbound is a outbound that uses Cherami as the transport.
func (*Outbound) CallOneway ¶
CallOneway makes a oneway request using Cherami.
func (*Outbound) Transports ¶
Transports returns the transport that the outbound uses.
type OutboundConfig ¶
type OutboundConfig struct {
Destination string
}
OutboundConfig defines the config in order to create a Outbound.
type Transport ¶
type Transport struct {
// contains filtered or unexported fields
}
Transport keeps shared objects between inbound and outbound.
func NewTransport ¶
NewTransport creates a new cherami transport for shared objects between inbound and outbound.
func (*Transport) NewInbound ¶
func (t *Transport) NewInbound(config InboundConfig) *Inbound
NewInbound builds a new Cherami inbound.
func (*Transport) NewOutbound ¶
func (t *Transport) NewOutbound(config OutboundConfig) *Outbound
NewOutbound builds a new cherami outbound.