MCPcopy Create free account

hub / github.com/hashicorp/memberlist / functions

Functions469 in github.com/hashicorp/memberlist

↓ 3 callersMethodFailNow
()
internal/retry/retry.go:41
↓ 3 callersMethodIPMustBeChecked
IPMustBeChecked return true if IPAllowed must be called
config.go:360
↓ 3 callersMethodInvalidates
(other Broadcast)
broadcast.go:24
↓ 3 callersFunctionLogStringAddress
(addr string)
logging.go:19
↓ 3 callersMethodName
The unique identity of this broadcast message.
queue.go:150
↓ 3 callersMethodRemoteAddr
()
net_test.go:1054
↓ 3 callersMethodRemoveKey
RemoveKey drops a key from the keyring. This will return an error if the key requested for removal is currently at position 0 (primary key).
keyring.go:116
↓ 3 callersMethodSendToAddress
(a Address, msg []byte)
memberlist.go:562
↓ 3 callersMethodToggle
(enabled bool)
state_test.go:1476
↓ 3 callersMethodUseKey
UseKey changes the key used to encrypt messages. This is the only key used to encrypt messages, so peers should know this key before this method is ca
keyring.go:104
↓ 3 callersFunctioncompressPayload
compressPayload takes an opaque input buffer, compresses it and wraps it in a compress{} message that is encoded.
util.go:243
↓ 3 callersFunctiondecompressBuffer
decompressBuffer is used to decompress the buffer of a single compress message, handling multiple algorithms
util.go:278
↓ 3 callersMethodencodeBroadcastNotify
encodeBroadcastNotify encodes a message and enqueues it for broadcast and notifies the given channel when transmission is finished. Fails silently if
broadcast.go:60
↓ 3 callersFunctionfailedRemote
failedRemote checks the error and decides if it indicates a failure on the other end.
state.go:286
↓ 3 callersMethodgossip
gossip is invoked every GossipInterval period to broadcast our gossip messages to a few random nodes.
state.go:590
↓ 3 callersMethodhasLeft
()
memberlist.go:757
↓ 3 callersFunctionhasPort
hasPort is given a string of the form "host", "host:port", "ipv6::address", or "[ipv6::address]:port", and returns true if the string includes a port.
util.go:309
↓ 3 callersMethodinstallKeys
installKeys will take out a lock on the keyring, and replace the keys with a new set of keys. The key indicated by primaryKey will be installed as the
keyring.go:132
↓ 3 callersMethodinvokeNackHandler
Invokes nack handler if any is associated.
state.go:900
↓ 3 callersFunctionnewMemberlist
newMemberlist creates the network listeners. Does not schedule execution of background maintenance.
memberlist.go:100
↓ 3 callersMethodnextIncarnation
nextIncarnation returns the next incarnation number in a thread safe way
state.go:810
↓ 3 callersMethodrefute
refute gossips an alive message in response to incoming information that we are suspect or dead. It will make sure the incarnation number beats the gi
state.go:915
↓ 3 callersFunctionregisterInMemorySink
(t *testing.T)
state_test.go:2627
↓ 3 callersMethodresetNodes
resetNodes is used when the tick wraps around. It will reap the dead nodes and shuffle the node list.
state.go:565
↓ 3 callersMethodresolveAddr
resolveAddr is used to resolve the address into an address, port, and error. If no port is given, use the default
memberlist.go:371
↓ 3 callersFunctionrunStep
Consul bug, rapid restart (before failure detection), with an updated meta data. Should be at incarnation 1 for both. This test is uncommented becaus
memberlist_test.go:2417
↓ 3 callersMethodsetAckHandler
setAckHandler is used to attach a handler to be invoked when an ack with a given sequence number is received. If a timeout is reached, the handler is
state.go:871
↓ 3 callersFunctionwaitForCondition
(t *testing.T, fn func() (bool, string))
memberlist_test.go:1593
↓ 2 callersMethodDialTimeout
DialTimeout is used to create a connection that allows us to perform two-way communication with a peer. This is generally more expensive than packet c
transport.go:59
↓ 2 callersMethodFailNow
FailNow is called when the retrying is abandoned.
internal/retry/retry.go:32
↓ 2 callersMethodGetAutoBindPort
GetAutoBindPort returns the bind port that was automatically given by the kernel, if a bind port of 0 was given.
net_transport.go:133
↓ 2 callersMethodGetBroadcasts
GetBroadcasts is called when user data messages can be broadcast. It can return a list of buffers to send. Each buffer should assume an overhead as pr
delegate.go:27
↓ 2 callersMethodLeave
Leave will broadcast a leave message but will not shutdown the background listeners, meaning the node will continue participating in gossip and state
memberlist.go:649
↓ 2 callersMethodLocalNode
LocalNode is used to return the local Node
memberlist.go:501
↓ 2 callersMethodNextOr
NextOr returns true if the operation should be repeated. Otherwise, it calls fail and returns false.
internal/retry/retry.go:163
↓ 2 callersMethodNodeMeta
NodeMeta is used to retrieve meta-data about the current node when broadcasting an alive message. It's length is limited to the given byte size. This
delegate.go:13
↓ 2 callersMethodNotifyJoin
NotifyJoin is invoked when a node is detected to have joined. The Node argument must not be modified.
event_delegate.go:13
↓ 2 callersMethodNotifyLeave
NotifyLeave is invoked when a node is detected to have left. The Node argument must not be modified.
event_delegate.go:17
↓ 2 callersMethodNotifyMsg
NotifyMsg is called when a user-data message is received. Care should be taken that this method does not block, since doing so would block the entire
delegate.go:19
↓ 2 callersMethodNotifyUpdate
NotifyUpdate is invoked when a node is detected to have updated, usually involving the meta data. The Node argument must not be modified.
event_delegate.go:22
↓ 2 callersMethodPing
Ping initiates a ping to the node with the specified name.
state.go:524
↓ 2 callersFunctionRemoveLabelHeaderFromPacket
RemoveLabelHeaderFromPacket removes any label header from the provided packet and returns it along with the remaining packet contents.
label.go:37
↓ 2 callersFunctionRemoveLabelHeaderFromStream
RemoveLabelHeaderFromStream removes any label header from the beginning of the stream if present and returns it along with an updated conn with that h
label.go:90
↓ 2 callersMethodScaleTimeout
ScaleTimeout takes the given duration and scales it based on the current score. Less healthyness will lead to longer timeouts.
awareness.go:71
↓ 2 callersMethodSendBestEffort
SendBestEffort uses the unreliable packet-oriented interface of the transport to target a user message at the given node (this does not use the gossip
memberlist.go:586
↓ 2 callersMethodSendReliable
SendReliable uses the reliable stream-oriented interface of the transport to target a user message at the given node (this does not use the gossip mec
memberlist.go:601
↓ 2 callersMethodUpdateNode
UpdateNode is used to trigger re-advertising the local node. This is primarily used with a Delegate to support dynamic updates to the local meta data.
memberlist.go:513
↓ 2 callersMethodWriteToAddress
(b []byte, addr Address)
transport.go:100
↓ 2 callersMethodaddItem
addItem adds the given item into the overall datastructure. You must already hold the mutex.
queue.go:264
↓ 2 callersMethodanyAlive
Check for any other alive node.
memberlist.go:697
↓ 2 callersFunctionappendBytes
(first []byte, second []byte)
security.go:204
↓ 2 callersFunctiondecompressPayload
decompressPayload is used to unpack an encoded compress{} message and return its payload uncompressed
util.go:267
↓ 2 callersMethoddecryptRemoteState
decryptRemoteState is used to help decrypt the remote state
net.go:1121
↓ 2 callersFunctionencryptDecryptVersioned
(vsn encryptionVersion, t *testing.T)
security_test.go:46
↓ 2 callersMethodencryptLocalState
encryptLocalState is used to help encrypt local state before sending
net.go:1092
↓ 2 callersFunctionencryptOverhead
encryptOverhead returns the maximum possible overhead of encryption by version
security.go:60
↓ 2 callersFunctionensurePort
ensurePort makes sure the given string has a port number on it, otherwise it appends the given port as a default.
util.go:323
↓ 2 callersFunctiongetBindAddrNet
(network byte)
memberlist_test.go:29
↓ 2 callersMethodgetBroadcasts
getBroadcasts is used to return a slice of broadcasts to send up to a maximum byte size, while imposing a per-broadcast overhead. This is used to fill
broadcast.go:80
↓ 2 callersFunctiongetIntervalMetrics
(t *testing.T, sink *metrics.InmemSink)
state_test.go:2639
↓ 2 callersMethodgetNodeStateChange
(addr string)
memberlist.go:769
↓ 2 callersMethodgetPeer
(a Address)
mock_transport.go:186
↓ 2 callersMethodgetRemoteState
()
memberlist_test.go:90
↓ 2 callersMethodhasShutdown
()
memberlist.go:753
↓ 2 callersMethodingestPacket
(buf []byte, from net.Addr, timestamp time.Time)
net.go:373
↓ 2 callersFunctionmakeLabelHeader
(label string, rest []byte)
label.go:165
↓ 2 callersMethodmergeRemoteState
mergeRemoteState is used to merge the remote state with our local state
net.go:1274
↓ 2 callersMethodmergeState
mergeState is invoked by the network layer when we get a Push/Pull state transfer
state.go:1314
↓ 2 callersFunctionmoveDeadNodes
moveDeadNodes moves dead and left nodes that that have not changed during the gossipToTheDeadTime interval to the end of the slice and returns the ind
util.go:106
↓ 2 callersFunctionnewAwareness
newAwareness returns a new awareness object.
awareness.go:33
↓ 2 callersFunctionnewPeekedConnFromBufferedReader
newPeekedConnFromBufferedReader will splice the buffer contents after the offset into the provided net.Conn and return the result so that the rest of
label.go:152
↓ 2 callersFunctionpkcs7decode
pkcs7decode is used to decode a buffer that has been padded
security.go:49
↓ 2 callersFunctionpkcs7encode
pkcs7encode is used to pad a byte buffer to a specific block size using the PKCS7 algorithm. "Ignores" some bytes to compensate for IV
security.go:40
↓ 2 callersMethodpushPull
pushPull is invoked periodically to randomly perform a complete state exchange. Used to ensure a high level of convergence, but is also reasonably exp
state.go:648
↓ 2 callersMethodpushPullNode
pushPullNode does a complete state exchange with a specific node.
state.go:670
↓ 2 callersMethodqueueBroadcast
queueBroadcast is like QueueBroadcast but you can use a nonzero value for the initial transmit tier assigned to the message. This is meant to be used
queue.go:185
↓ 2 callersMethodreadRemoteState
readRemoteState is used to read the remote state from a connection
net.go:1230
↓ 2 callersMethodrefreshAdvertise
()
memberlist.go:490
↓ 2 callersFunctionremainingSuspicionTime
remainingSuspicionTime takes the state variables of the suspicion timer and calculates the remaining time to wait before considering a node dead. The
suspicion.go:89
↓ 2 callersFunctionreservePort
(t *testing.T, ip net.IP, purpose string)
memberlist_test.go:1814
↓ 2 callersMethodsendLocalState
sendLocalState is invoked to send our local state over a stream connection.
net.go:1010
↓ 2 callersMethodsetMeta
(meta []byte)
memberlist_test.go:72
↓ 2 callersMethodsetState
(state []byte)
memberlist_test.go:78
↓ 2 callersFunctionshuffleNodes
shuffleNodes randomly shuffles the input nodes using the Fisher-Yates shuffle
util.go:84
↓ 2 callersFunctionsuspicionTimeout
suspicionTimeout computes the timeout that should be used when a node is suspected
util.go:69
↓ 2 callersMethodtcpListen
tcpListen is a long running goroutine that accepts incoming TCP connections and hands them off to the stream channel.
net_transport.go:288
↓ 2 callersFunctiontestMemberlist_Join_with_Labels
(t *testing.T, secretKey []byte)
memberlist_test.go:719
↓ 2 callersMethodtriggerFunc
triggerFunc is used to trigger a function call each time a message is received until a stop tick arrives.
state.go:164
↓ 2 callersMethodverifyProtocol
verifyProtocol verifies that all the remote nodes can speak with our nodes and vice versa on both the core protocol as well as the delegate protocol l
state.go:697
↓ 2 callersFunctionverifySampleExists
(t *testing.T, name string, sink *metrics.InmemSink)
state_test.go:2657
↓ 2 callersMethodwalkReadOnlyLocked
walkReadOnlyLocked calls f for each item in the queue traversing it in natural order (by Less) when reverse=false and the opposite when true. You must
queue.go:87
↓ 1 callersMethodAckPayload
AckPayload is invoked when an ack is being sent; the returned bytes will be appended to the ack
ping_delegate.go:14
↓ 1 callersFunctionCheckInteg
CheckInteg will skip a test if integration testing is not enabled.
integ_test.go:15
↓ 1 callersFunctionDefaultFailer
DefaultFailer provides default retry.Run() behavior for unit tests.
internal/retry/retry.go:144
↓ 1 callersFunctionDefaultWANConfig
DefaultWANConfig works like DefaultConfig, however it returns a configuration that is optimized for most WAN environments. The default configuration i
config.go:346
↓ 1 callersMethodDialAddressTimeout
See NodeAwareTransport.
mock_transport.go:159
↓ 1 callersMethodDialAddressTimeout
See NodeAwareTransport.
net_transport.go:250
↓ 1 callersMethodFinalAdvertiseAddr
FinalAdvertiseAddr is given the user's configured values (which might be empty) and returns the desired IP and port to advertise to the rest of the cl
transport.go:35
↓ 1 callersMethodIngestPacket
(conn net.Conn, addr net.Addr, now time.Time, shouldClose bool)
net_test.go:941
↓ 1 callersMethodIngestStream
(conn net.Conn)
transport.go:95
← previousnext →101–200 of 469, ranked by callers