Documentation ¶
Index ¶
Constants ¶
View Source
const ( // GossipPacketMaxIdleTime controls how long we keep an idle connection // open to a server. // // Conceptually similar to: agent/consul/server.go:serverRPCCache GossipPacketMaxIdleTime = 2 * time.Minute // GossipPacketMaxByteSize is the maximum allowed size of a packet // forwarded via wanfed. This is 4MB which should be way bigger than serf // or memberlist allow practically so it should never be hit in practice. GossipPacketMaxByteSize = 4 * 1024 * 1024 )
Variables ¶
This section is empty.
Functions ¶
func SplitNodeName ¶
SplitNodeName splits a node name as it would be represented in serf/memberlist in the WAN pool of the form "<short-node-name>.<datacenter>" like "nyc-web42.dc5" => "nyc-web42" & "dc5"
Types ¶
type IngestionAwareTransport ¶ added in v1.9.17
type MeshGatewayResolver ¶
type Transport ¶
type Transport struct { IngestionAwareTransport // contains filtered or unexported fields }
func NewTransport ¶
func NewTransport( tlsConfigurator *tlsutil.Configurator, transport IngestionAwareTransport, datacenter string, gwResolver MeshGatewayResolver, ) (*Transport, error)
func (*Transport) DialAddressTimeout ¶
func (t *Transport) DialAddressTimeout(addr memberlist.Address, timeout time.Duration) (net.Conn, error)
DialAddressTimeout implements memberlist.NodeAwareTransport.
func (*Transport) WriteToAddress ¶
WriteToAddress implements memberlist.NodeAwareTransport.
Click to show internal directories.
Click to hide internal directories.