MCPcopy Create free account

hub / github.com/hashicorp/memberlist / functions

Functions469 in github.com/hashicorp/memberlist

↓ 1 callersMethodInvalidates
Invalidates checks if enqueuing the current broadcast invalidates a previous broadcast
queue.go:120
↓ 1 callersFunctionIsInteg
IsInteg returns a boolean telling you if we're in integ testing mode.
integ_test.go:22
↓ 1 callersMethodLess
Less tests whether the current item is less than the given argument. This must provide a strict weak ordering. If !a.Less(b) && !b.Less(a), we treat
queue.go:52
↓ 1 callersMethodLocalState
LocalState is used for a TCP Push/Pull. This is sent to the remote side in addition to the membership information. Any data can be sent here. See Merg
delegate.go:33
↓ 1 callersMethodMergeRemoteState
MergeRemoteState is invoked after a TCP Push/Pull. This is the state received from the remote side and is the result of the remote side's LocalState c
delegate.go:39
↓ 1 callersMethodMessage
()
broadcast.go:40
↓ 1 callersFunctionNewNetTransport
NewNetTransport returns a net transport with the given configuration. On success all the network listeners will be created and listening.
net_transport.go:66
↓ 1 callersMethodNotifyAlive
NotifyAlive is invoked when a message about a live node is received from the network. Returning a non-nil error prevents the node from being consider
alive_delegate.go:16
↓ 1 callersMethodNotifyConflict
NotifyConflict is invoked when a name conflict is detected
conflict_delegate.go:12
↓ 1 callersMethodNotifyMerge
NotifyMerge is invoked when a merge could take place. Provides a list of the nodes known by the peer. If the return value is non-nil, the merge is can
merge_delegate.go:16
↓ 1 callersMethodNotifyPingComplete
NotifyPing is invoked when an ack for a ping is received
ping_delegate.go:16
↓ 1 callersMethodPacketCh
PacketCh returns a channel that can be read to receive incoming packets from other peers. How this is set up for listening is left as an exercise for
transport.go:52
↓ 1 callersMethodPrune
Prune will retain the maxRetain latest messages, and the rest will be discarded. This can be used to prevent unbounded queue sizes
queue.go:411
↓ 1 callersMethodRead
(b []byte)
net_test.go:953
↓ 1 callersMethodSendTo
Deprecated: SendTo is deprecated in favor of SendBestEffort, which requires a node to target. If you don't have a node then use SendToAddress.
memberlist.go:557
↓ 1 callersMethodSendToTCP
Deprecated: SendToTCP is deprecated in favor of SendReliable.
memberlist.go:578
↓ 1 callersMethodSendToUDP
Deprecated: SendToUDP is deprecated in favor of SendBestEffort.
memberlist.go:573
↓ 1 callersMethodShutdown
See Transport.
net_transport.go:269
↓ 1 callersMethodStreamCh
StreamCh returns a channel that can be read to handle incoming stream connections from other peers. How this is set up for listening is left as an exe
transport.go:64
↓ 1 callersMethodString
See net.Addr.
mock_transport.go:61
↓ 1 callersFunctionValidateKey
ValidateKey will check to see if the key is valid and returns an error if not. key should be either 16, 24, or 32 bytes to select AES-128, AES-192, o
keyring.go:68
↓ 1 callersMethodWriteToAddress
See NodeAwareTransport.
mock_transport.go:102
↓ 1 callersMethodWriteToAddress
See NodeAwareTransport.
net_transport.go:192
↓ 1 callersMethodchangeNode
(addr string, f func(*nodeState))
memberlist.go:777
↓ 1 callersMethodcheckBroadcastQueueDepth
checkBroadcastQueueDepth periodically checks the size of the broadcast queue to see if it is too large
memberlist.go:787
↓ 1 callersFunctiondecorate
(s string)
internal/retry/retry.go:77
↓ 1 callersFunctiondecryptMessage
decryptMessage performs the actual decryption of ciphertext. This is in its own function to allow it to be called on all keys easily.
security.go:144
↓ 1 callersFunctiondedup
(a []string)
internal/retry/retry.go:99
↓ 1 callersMethoddeschedule
Deschedule is used to stop the background maintenance. This is safe to call multiple times.
state.go:211
↓ 1 callersMethodensureCanConnect
ensureCanConnect return the IP from a RemoteAddress return error if this client must not connect
net.go:705
↓ 1 callersMethodgetContents
()
memberlist_test.go:1948
↓ 1 callersMethodgetNextMessage
getNextMessage returns the next message to process in priority order, using LIFO
net.go:490
↓ 1 callersMethodgetTransmitRange
getTransmitRange returns a pair of min/max values for transmit values represented by the current queue contents. Both values represent actual transmit
queue.go:274
↓ 1 callersMethodhandleAck
(buf []byte, from net.Addr, timestamp time.Time)
net.go:676
↓ 1 callersMethodhandleAlive
(buf []byte, from net.Addr)
net.go:725
↓ 1 callersMethodhandleCompound
(buf []byte, from net.Addr, timestamp time.Time)
net.go:542
↓ 1 callersMethodhandleCompressed
handleCompressed is used to unpack a compressed message
net.go:772
↓ 1 callersMethodhandleConn
handleConn handles a single incoming stream connection from the transport.
net.go:236
↓ 1 callersMethodhandleDead
(buf []byte, from net.Addr)
net.go:754
↓ 1 callersMethodhandleIndirectPing
(buf []byte, from net.Addr)
net.go:594
↓ 1 callersMethodhandleNack
(buf []byte, from net.Addr)
net.go:685
↓ 1 callersMethodhandlePing
(buf []byte, from net.Addr)
net.go:561
↓ 1 callersMethodhandleSuspect
(buf []byte, from net.Addr)
net.go:694
↓ 1 callersMethodhandleUser
handleUser is used to notify channels of incoming user data
net.go:764
↓ 1 callersMethodinit
Init allocates substructures
keyring.go:24
↓ 1 callersFunctionisIPv6LoopbackAvailable
(t *testing.T)
memberlist_test.go:1733
↓ 1 callersFunctionisPortFree
(t *testing.T, addr string, port int)
memberlist_test.go:2038
↓ 1 callersMethodlazyInit
lazyInit initializes internal data structures the first time they are needed. You must already hold the mutex.
queue.go:173
↓ 1 callersFunctionmakeCompoundMessages
makeCompoundMessages takes a list of messages and packs them into one or multiple messages based on the limitations of compound messages (255 messages
util.go:163
↓ 1 callersMethodpacketHandler
packetHandler is a long running goroutine that processes messages received over the packet interface, but is decoupled from the listener to avoid bloc
net.go:509
↓ 1 callersMethodpacketListen
packetListen is a long running goroutine that pulls packets out of the transport and hands them off for processing.
net.go:361
↓ 1 callersMethodprobe
Tick is used to perform a single round of failure detection and gossip
state.go:232
↓ 1 callersMethodprobeNodeByAddr
probeNodeByAddr just safely calls probeNode given only the address of the node (for tests)
state.go:276
↓ 1 callersMethodpushPullTrigger
pushPullTrigger is used to periodically trigger a push/pull until a stop tick arrives. We don't use triggerFunc since the push/pull timer is dynamical
state.go:186
↓ 1 callersMethodqueueBroadcast
queueBroadcast is used to start dissemination of a message. It will be sent up to a configured number of times. The message could potentially be inval
broadcast.go:72
↓ 1 callersMethodreadUserMsg
readUserMsg is used to decode a userMsg from a stream.
net.go:1313
↓ 1 callersMethodsendAndReceiveState
sendAndReceiveState is used to initiate a push/pull over a stream with a remote host.
net.go:961
↓ 1 callersMethodsendMsg
sendMsg is used to send a message via packet to another host. It will opportunistically create a compoundMsg and piggy back other broadcasts.
net.go:798
↓ 1 callersMethodsendUserMsg
sendUserMsg is used to stream a user message to another host.
net.go:926
↓ 1 callersMethodsetAdvertise
(addr net.IP, port int)
memberlist.go:483
↓ 1 callersMethodsetBroadcasts
(broadcasts [][]byte)
memberlist_test.go:84
↓ 1 callersFunctionsetUDPRecvBuf
setUDPRecvBuf is used to resize the UDP receive window. The function attempts to set the read buffer to `udpRecvBuf` but backs off until the read buff
net_transport.go:368
↓ 1 callersMethodskipIncarnation
skipIncarnation adds the positive offset to the incarnation number.
state.go:815
↓ 1 callersMethodstreamListen
streamListen is a long running goroutine that pulls incoming streams from the transport and hands them off for processing.
net.go:223
↓ 1 callersMethodtcpLookupIP
tcpLookupIP is a helper to initiate a TCP-based DNS lookup for the given host. The built-in Go resolver will do a UDP lookup first, and will only use
memberlist.go:314
↓ 1 callersMethodudpListen
udpListen is a long running goroutine that accepts incoming UDP packets and hands them off to the packet channel.
net_transport.go:330
↓ 1 callersFunctionwaitUntilPortIsFree
(t *testing.T, m *Memberlist)
memberlist_test.go:2060
MethodAckPayload
()
memberlist_test.go:1956
MethodAddress
Address returns the host:port form of a node's address, suitable for use with a transport.
state.go:88
MethodCheck
(err error)
internal/retry/retry.go:66
MethodClose
()
net_test.go:1066
FunctionDefaultLocalConfig
DefaultLocalConfig works like DefaultConfig, however it returns a configuration that is optimized for a local loopback environments. The default confi
config.go:380
MethodDialAddressTimeout
(addr Address, timeout time.Duration)
transport.go:114
MethodDialAddressTimeout
(addr Address, timeout time.Duration)
transport.go:143
MethodDialTimeout
See Transport.
mock_transport.go:153
MethodDialTimeout
See Transport.
net_transport.go:244
MethodDialTimeout
(addr string, timeout time.Duration)
transport.go:154
MethodError
()
state.go:115
MethodFinalAdvertiseAddr
See Transport.
mock_transport.go:76
MethodFinalAdvertiseAddr
See Transport.
net_transport.go:140
MethodFinished
()
broadcast.go:44
MethodFullAddress
FullAddress returns the node name and host:port form of a node's address, suitable for use with a transport.
state.go:94
MethodGetBroadcasts
(overhead, limit int)
memberlist_test.go:127
MethodGetHealthScore
GetHealthScore gives this instance's idea of how well it is meeting the soft real-time requirements of the protocol. Lower numbers are better, and zer
memberlist.go:711
MethodIngestPacket
See NodeAwareTransport.
mock_transport.go:123
MethodIngestPacket
See IngestionAwareTransport.
net_transport.go:214
MethodIngestPacket
(conn net.Conn, addr net.Addr, now time.Time, shouldClose bool)
transport.go:94
MethodIngestStream
See NodeAwareTransport.
mock_transport.go:176
MethodIngestStream
See IngestionAwareTransport.
net_transport.go:263
MethodLocalState
(join bool)
memberlist_test.go:136
MethodMergeRemoteState
(s []byte, join bool)
memberlist_test.go:143
MethodName
memberlist.NamedBroadcast optional interface
broadcast.go:36
MethodNetwork
See net.Addr.
mock_transport.go:56
MethodNextOr
(fail func())
internal/retry/retry.go:175
MethodNextOr
(fail func())
internal/retry/retry.go:198
MethodNodeMeta
(limit int)
memberlist_test.go:111
MethodNotifyAlive
(peer *Node)
memberlist_test.go:1025
MethodNotifyConflict
(existing, other *Node)
memberlist_test.go:1884
MethodNotifyJoin
(n *Node)
event_delegate.go:54
MethodNotifyJoin
NotifyJoin is invoked when a node is detected to have joined. The Node argument must not be modified.
state_test.go:1484
← previousnext →201–300 of 469, ranked by callers