Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/hashicorp/memberlist
/ functions
Functions
469 in github.com/hashicorp/memberlist
⨍
Functions
469
◇
Types & classes
76
↓ 1 callers
Method
Invalidates
Invalidates checks if enqueuing the current broadcast invalidates a previous broadcast
queue.go:120
↓ 1 callers
Function
IsInteg
IsInteg returns a boolean telling you if we're in integ testing mode.
integ_test.go:22
↓ 1 callers
Method
Less
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 callers
Method
LocalState
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 callers
Method
MergeRemoteState
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 callers
Method
Message
()
broadcast.go:40
↓ 1 callers
Function
NewNetTransport
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 callers
Method
NotifyAlive
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 callers
Method
NotifyConflict
NotifyConflict is invoked when a name conflict is detected
conflict_delegate.go:12
↓ 1 callers
Method
NotifyMerge
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 callers
Method
NotifyPingComplete
NotifyPing is invoked when an ack for a ping is received
ping_delegate.go:16
↓ 1 callers
Method
PacketCh
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 callers
Method
Prune
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 callers
Method
Read
(b []byte)
net_test.go:953
↓ 1 callers
Method
SendTo
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 callers
Method
SendToTCP
Deprecated: SendToTCP is deprecated in favor of SendReliable.
memberlist.go:578
↓ 1 callers
Method
SendToUDP
Deprecated: SendToUDP is deprecated in favor of SendBestEffort.
memberlist.go:573
↓ 1 callers
Method
Shutdown
See Transport.
net_transport.go:269
↓ 1 callers
Method
StreamCh
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 callers
Method
String
See net.Addr.
mock_transport.go:61
↓ 1 callers
Function
ValidateKey
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 callers
Method
WriteToAddress
See NodeAwareTransport.
mock_transport.go:102
↓ 1 callers
Method
WriteToAddress
See NodeAwareTransport.
net_transport.go:192
↓ 1 callers
Method
changeNode
(addr string, f func(*nodeState))
memberlist.go:777
↓ 1 callers
Method
checkBroadcastQueueDepth
checkBroadcastQueueDepth periodically checks the size of the broadcast queue to see if it is too large
memberlist.go:787
↓ 1 callers
Function
decorate
(s string)
internal/retry/retry.go:77
↓ 1 callers
Function
decryptMessage
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 callers
Function
dedup
(a []string)
internal/retry/retry.go:99
↓ 1 callers
Method
deschedule
Deschedule is used to stop the background maintenance. This is safe to call multiple times.
state.go:211
↓ 1 callers
Method
ensureCanConnect
ensureCanConnect return the IP from a RemoteAddress return error if this client must not connect
net.go:705
↓ 1 callers
Method
getContents
()
memberlist_test.go:1948
↓ 1 callers
Method
getNextMessage
getNextMessage returns the next message to process in priority order, using LIFO
net.go:490
↓ 1 callers
Method
getTransmitRange
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 callers
Method
handleAck
(buf []byte, from net.Addr, timestamp time.Time)
net.go:676
↓ 1 callers
Method
handleAlive
(buf []byte, from net.Addr)
net.go:725
↓ 1 callers
Method
handleCompound
(buf []byte, from net.Addr, timestamp time.Time)
net.go:542
↓ 1 callers
Method
handleCompressed
handleCompressed is used to unpack a compressed message
net.go:772
↓ 1 callers
Method
handleConn
handleConn handles a single incoming stream connection from the transport.
net.go:236
↓ 1 callers
Method
handleDead
(buf []byte, from net.Addr)
net.go:754
↓ 1 callers
Method
handleIndirectPing
(buf []byte, from net.Addr)
net.go:594
↓ 1 callers
Method
handleNack
(buf []byte, from net.Addr)
net.go:685
↓ 1 callers
Method
handlePing
(buf []byte, from net.Addr)
net.go:561
↓ 1 callers
Method
handleSuspect
(buf []byte, from net.Addr)
net.go:694
↓ 1 callers
Method
handleUser
handleUser is used to notify channels of incoming user data
net.go:764
↓ 1 callers
Method
init
Init allocates substructures
keyring.go:24
↓ 1 callers
Function
isIPv6LoopbackAvailable
(t *testing.T)
memberlist_test.go:1733
↓ 1 callers
Function
isPortFree
(t *testing.T, addr string, port int)
memberlist_test.go:2038
↓ 1 callers
Method
lazyInit
lazyInit initializes internal data structures the first time they are needed. You must already hold the mutex.
queue.go:173
↓ 1 callers
Function
makeCompoundMessages
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 callers
Method
packetHandler
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 callers
Method
packetListen
packetListen is a long running goroutine that pulls packets out of the transport and hands them off for processing.
net.go:361
↓ 1 callers
Method
probe
Tick is used to perform a single round of failure detection and gossip
state.go:232
↓ 1 callers
Method
probeNodeByAddr
probeNodeByAddr just safely calls probeNode given only the address of the node (for tests)
state.go:276
↓ 1 callers
Method
pushPullTrigger
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 callers
Method
queueBroadcast
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 callers
Method
readUserMsg
readUserMsg is used to decode a userMsg from a stream.
net.go:1313
↓ 1 callers
Method
sendAndReceiveState
sendAndReceiveState is used to initiate a push/pull over a stream with a remote host.
net.go:961
↓ 1 callers
Method
sendMsg
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 callers
Method
sendUserMsg
sendUserMsg is used to stream a user message to another host.
net.go:926
↓ 1 callers
Method
setAdvertise
(addr net.IP, port int)
memberlist.go:483
↓ 1 callers
Method
setBroadcasts
(broadcasts [][]byte)
memberlist_test.go:84
↓ 1 callers
Function
setUDPRecvBuf
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 callers
Method
skipIncarnation
skipIncarnation adds the positive offset to the incarnation number.
state.go:815
↓ 1 callers
Method
streamListen
streamListen is a long running goroutine that pulls incoming streams from the transport and hands them off for processing.
net.go:223
↓ 1 callers
Method
tcpLookupIP
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 callers
Method
udpListen
udpListen is a long running goroutine that accepts incoming UDP packets and hands them off to the packet channel.
net_transport.go:330
↓ 1 callers
Function
waitUntilPortIsFree
(t *testing.T, m *Memberlist)
memberlist_test.go:2060
Method
AckPayload
()
memberlist_test.go:1956
Method
Address
Address returns the host:port form of a node's address, suitable for use with a transport.
state.go:88
Method
Check
(err error)
internal/retry/retry.go:66
Method
Close
()
net_test.go:1066
Function
DefaultLocalConfig
DefaultLocalConfig works like DefaultConfig, however it returns a configuration that is optimized for a local loopback environments. The default confi
config.go:380
Method
DialAddressTimeout
(addr Address, timeout time.Duration)
transport.go:114
Method
DialAddressTimeout
(addr Address, timeout time.Duration)
transport.go:143
Method
DialTimeout
See Transport.
mock_transport.go:153
Method
DialTimeout
See Transport.
net_transport.go:244
Method
DialTimeout
(addr string, timeout time.Duration)
transport.go:154
Method
Error
()
state.go:115
Method
FinalAdvertiseAddr
See Transport.
mock_transport.go:76
Method
FinalAdvertiseAddr
See Transport.
net_transport.go:140
Method
Finished
()
broadcast.go:44
Method
FullAddress
FullAddress returns the node name and host:port form of a node's address, suitable for use with a transport.
state.go:94
Method
GetBroadcasts
(overhead, limit int)
memberlist_test.go:127
Method
GetHealthScore
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
Method
IngestPacket
See NodeAwareTransport.
mock_transport.go:123
Method
IngestPacket
See IngestionAwareTransport.
net_transport.go:214
Method
IngestPacket
(conn net.Conn, addr net.Addr, now time.Time, shouldClose bool)
transport.go:94
Method
IngestStream
See NodeAwareTransport.
mock_transport.go:176
Method
IngestStream
See IngestionAwareTransport.
net_transport.go:263
Method
LocalState
(join bool)
memberlist_test.go:136
Method
MergeRemoteState
(s []byte, join bool)
memberlist_test.go:143
Method
Name
memberlist.NamedBroadcast optional interface
broadcast.go:36
Method
Network
See net.Addr.
mock_transport.go:56
Method
NextOr
(fail func())
internal/retry/retry.go:175
Method
NextOr
(fail func())
internal/retry/retry.go:198
Method
NodeMeta
(limit int)
memberlist_test.go:111
Method
NotifyAlive
(peer *Node)
memberlist_test.go:1025
Method
NotifyConflict
(existing, other *Node)
memberlist_test.go:1884
Method
NotifyJoin
(n *Node)
event_delegate.go:54
Method
NotifyJoin
NotifyJoin is invoked when a node is detected to have joined. The Node argument must not be modified.
state_test.go:1484
← previous
next →
201–300 of 469, ranked by callers