Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/matrix-org/pinecone
/ functions
Functions
543 in github.com/matrix-org/pinecone
⨍
Functions
543
◇
Types & classes
157
↓ 82 callers
Method
Println
(...interface{})
types/logger.go:18
↓ 34 callers
Method
Printf
(string, ...interface{})
types/logger.go:19
↓ 28 callers
Method
String
()
router/peer.go:85
↓ 24 callers
Method
push
(frame *types.Frame)
router/queue.go:22
↓ 21 callers
Method
String
()
cmd/pineconesim/simulator/state.go:116
↓ 18 callers
Method
Close
Close will stop the Pinecone node. Once this has been called, the node cannot be restarted or reused.
router/router.go:139
↓ 16 callers
Method
stop
stop will immediately mark a port as offline, before dispatching a task to the state actor to clean up the peering. Once the peering has been stopped,
router/peer.go:128
↓ 15 callers
Method
_rootAnnouncement
_rootAnnouncement returns the latest root announcement from our parent. If we are the root, or the announcement from the parent has expired, we will i
router/state_tree.go:92
↓ 14 callers
Method
PublicKey
()
cmd/pineconesim/simulator/router.go:32
↓ 13 callers
Method
_publish
(event SimEvent)
cmd/pineconesim/simulator/state.go:157
↓ 12 callers
Method
EqualTo
(b *Root)
types/announcement.go:152
↓ 12 callers
Method
RemoteAddr
()
sessions/streams.go:32
↓ 12 callers
Method
updateUI
(node)
cmd/pineconesim/ui/modules/graph.js:203
↓ 11 callers
Method
Connect
(conn net.Conn, options ...router.ConnectionOption)
cmd/pineconesim/simulator/router.go:33
↓ 11 callers
Method
Length
()
types/varu64.go:49
↓ 10 callers
Method
CompareTo
(b PublicKey)
types/ed25519.go:57
↓ 10 callers
Method
DistanceTo
(b Coordinates)
types/coordinates.go:115
↓ 9 callers
Method
Addr
Addr returns the local address of the node in the form of a `types.PublicKey`.
router/router.go:159
↓ 9 callers
Method
GetNodeName
(peerID string)
cmd/pineconesim/simulator/state.go:180
↓ 9 callers
Method
Run
(log *log.Logger, sim *Simulator)
cmd/pineconesim/simulator/commands.go:218
↓ 9 callers
Method
_publish
_publish notifies each subscriber of a new event.
router/router.go:116
↓ 8 callers
Method
Sign
(privKey ed25519.PrivateKey, forPort SwitchPortID)
types/announcement.go:41
↓ 7 callers
Function
LessThan
(first, second types.PublicKey)
util/distance.go:23
↓ 7 callers
Method
MarshalBinary
(buffer []byte)
types/frame.go:99
↓ 7 callers
Function
getFrame
()
router/pools.go:39
↓ 6 callers
Method
Reset
()
types/frame.go:75
↓ 6 callers
Function
SendToServer
(msg)
cmd/pineconesim/ui/modules/server-api.js:63
↓ 6 callers
Method
Stop
()
multicast/multicast.go:241
↓ 6 callers
Function
generateSliderRow
(label, name)
cmd/pineconesim/ui/modules/ui/common.js:151
↓ 5 callers
Method
Coords
()
cmd/pineconesim/simulator/router.go:36
↓ 5 callers
Method
IsTraffic
()
types/frame.go:44
↓ 5 callers
Method
PublicKey
()
cmd/pineconesim/simulator/router.go:51
↓ 5 callers
Function
handleNodePanelUpdate
()
cmd/pineconesim/ui/modules/graph.js:874
↓ 5 callers
Method
send
send queues a frame to be sent to this peer. It is safe to be called from other actors. The frame will be allocated to the correct queue automatically
router/peer.go:109
↓ 5 callers
Method
valid
valid returns true if the update hasn't expired, or false if it has. It is required for updates to time out eventually, in the case that paths don't g
router/state_snek.go:46
↓ 4 callers
Method
MarshalBinary
(buf []byte)
types/virtualsnake.go:41
↓ 4 callers
Method
MinLength
()
types/varu64.go:57
↓ 4 callers
Function
NewRouter
(logger types.Logger, sk ed25519.PrivateKey, opts ...RouterOption)
router/router.go:53
↓ 4 callers
Method
Nodes
()
cmd/pineconesim/simulator/simulator.go:206
↓ 4 callers
Method
Subscribe
(ch chan events.Event)
cmd/pineconesim/simulator/router.go:34
↓ 4 callers
Method
UnmarshalBinary
(data []byte)
types/frame.go:181
↓ 4 callers
Method
WriteTo
WriteTo sends a packet into the Pinecone network. The packet will be sent as a traffic packet. The supplied net.Addr will dictate the method used to r
router/packetconn.go:81
↓ 4 callers
Method
_bootstrapSoon
_bootstrapSoon will reset the bootstrap timer so that we will bootstrap on the next maintenance interval. This is better than calling _bootstrapNow di
router/state_snek.go:92
↓ 4 callers
Method
_coords
_coords returns our tree coordinates, or an empty array if we are the root.
router/state_tree.go:118
↓ 4 callers
Method
_sendTreeAnnouncements
_sendTreeAnnouncements signs and sends the current root announcement to all of our active peers.
router/state_tree.go:144
↓ 4 callers
Method
_setDescendingNode
(node *virtualSnakeEntry)
router/state.go:300
↓ 4 callers
Method
_setParent
(peer *peer)
router/state.go:274
↓ 4 callers
Method
ack
()
router/queue.go:24
↓ 4 callers
Method
addEdge
(dataset, from, to)
cmd/pineconesim/ui/modules/graph.js:500
↓ 4 callers
Function
addSubmitButton
(form)
cmd/pineconesim/ui/modules/ui/common.js:35
↓ 4 callers
Function
convertTypeIDToNodeType
(typeID)
cmd/pineconesim/ui/modules/ui/common.js:21
↓ 4 callers
Function
createNodeOptionsDefault
()
cmd/pineconesim/ui/modules/ui/common.js:44
↓ 4 callers
Method
getNodeType
(nodeID)
cmd/pineconesim/ui/modules/graph.js:264
↓ 4 callers
Function
handleNodeHoverUpdate
()
cmd/pineconesim/ui/modules/graph.js:835
↓ 4 callers
Function
handleStatsPanelUpdate
()
cmd/pineconesim/ui/modules/graph.js:956
↓ 4 callers
Method
pop
()
router/queue.go:23
↓ 4 callers
Method
removeAllEdges
(dataset, id)
cmd/pineconesim/ui/modules/graph.js:578
↓ 4 callers
Method
removeEdge
(dataset, from, to)
cmd/pineconesim/ui/modules/graph.js:526
↓ 4 callers
Method
updatePingState
(enabled bool, active bool)
cmd/pineconesim/simulator/simulator.go:369
↓ 3 callers
Method
Accept
Accept blocks until a new connection request is received. The connection returned by this function will be TLS-encrypted.
sessions/listen.go:84
↓ 3 callers
Method
Connect
Connect takes a connection and attaches it to the switch as a peering. This function takes one or more ConnectionOptions to configure the peer. If no
router/router.go:167
↓ 3 callers
Method
ConnectNodes
(a, b string)
cmd/pineconesim/simulator/links.go:26
↓ 3 callers
Function
DHTOrdered
DHTOrdered returns true if the order of A, B and C is correct, where A < B < C without wrapping.
util/distance.go:37
↓ 3 callers
Method
DialContext
DialContext dials a given public key using the supplied network. The network field can be used to specify which routing algorithm to use for the conne
sessions/dial.go:38
↓ 3 callers
Method
DisconnectNodes
(a, b string)
cmd/pineconesim/simulator/links.go:103
↓ 3 callers
Method
GenerateNetworkGraph
()
cmd/pineconesim/simulator/realpaths.go:21
↓ 3 callers
Method
ManholeHandler
(w http.ResponseWriter, req *http.Request)
cmd/pineconesim/simulator/router.go:39
↓ 3 callers
Method
MarshalBinary
(buf []byte)
types/broadcast.go:45
↓ 3 callers
Method
MarshalBinary
(buffer []byte)
cmd/pineconesim/simulator/ping.go:42
↓ 3 callers
Method
Peers
()
router/api.go:51
↓ 3 callers
Method
PrivateKey
PrivateKey returns the private key of the node.
router/router.go:149
↓ 3 callers
Method
ProtectedPayload
()
types/virtualsnake.go:24
↓ 3 callers
Method
ReadFrom
ReadFrom reads the next packet that was delivered to this node over the Pinecone network. Only traffic frames will be returned here (not protocol fram
router/packetconn.go:51
↓ 3 callers
Method
SetDeadline
SetDeadline is not implemented.
router/packetconn.go:128
↓ 3 callers
Method
SetReadDeadline
(t time.Time)
router/packetconn.go:132
↓ 3 callers
Method
UpdateRealDistances
()
cmd/pineconesim/simulator/interface.go:36
↓ 3 callers
Method
Write
(b []byte)
util/slowconn.go:28
↓ 3 callers
Method
_flood
_flood sends a frame to all of our connected peers. This is used for flooding the wakeup broadcast to all of our direct peers. Classic flooding works
router/state_forward.go:163
↓ 3 callers
Method
_selectNewParent
_selectNewParent will examine the root updates from all of our peers and decide if we should re-parent. If a new peer is selected, this function will
router/state_tree.go:473
↓ 3 callers
Function
createCheckbox
()
cmd/pineconesim/ui/modules/ui/peerings-form.js:245
↓ 3 callers
Method
deselectRemovedNodes
()
cmd/pineconesim/ui/modules/graph.js:662
↓ 3 callers
Function
getNodeKey
(nodeID)
cmd/pineconesim/ui/modules/graph.js:865
↓ 3 callers
Method
getRoutingTableSizes
()
cmd/pineconesim/ui/modules/graph.js:296
↓ 3 callers
Function
setupBaseModal
(modalName)
cmd/pineconesim/ui/modules/ui.js:503
↓ 2 callers
Method
AddPeer
(uri string)
connections/manager.go:149
↓ 2 callers
Method
CalculatePathConvergence
()
cmd/pineconesim/simulator/simulator.go:266
↓ 2 callers
Method
CalculateStretch
()
cmd/pineconesim/simulator/simulator.go:227
↓ 2 callers
Method
ClearBandwidthCounters
()
router/peer.go:95
↓ 2 callers
Method
ConfigureFilterDefaults
(rates adversary.DropRates)
cmd/pineconesim/simulator/router.go:37
↓ 2 callers
Method
ConfigureFilterPeer
(peer types.PublicKey, rates adversary.DropRates)
cmd/pineconesim/simulator/router.go:38
↓ 2 callers
Function
ConvertNodeTypeToString
(nodeType)
cmd/pineconesim/ui/modules/server-api.js:69
↓ 2 callers
Method
CreateNode
(t string, nodeType APINodeType)
cmd/pineconesim/simulator/nodes.go:37
↓ 2 callers
Function
DHTWrappedOrdered
DHTWrappedOrdered returns true if the ordering of A, B and C is correct, where we may wrap around from C to A. This gives us the property of the succe
util/distance.go:45
↓ 2 callers
Method
Dial
Dial dials a given public key using the supplied network. The address must be the destination public key specified in hex.
sessions/dial.go:125
↓ 2 callers
Method
Disconnect
Disconnect will disconnect whatever is connected to the given port number on the Pinecone node. The peering will no longer be used and the underlying
router/router.go:250
↓ 2 callers
Method
EqualMaskTo
(b, m PublicKey)
types/ed25519.go:48
↓ 2 callers
Function
ForwardOrdering
(target types.PublicKey, input []types.PublicKey)
util/distance.go:64
↓ 2 callers
Method
InjectPacketFilter
(fn FilterFn)
router/router.go:95
↓ 2 callers
Method
IsLoopOrChildOf
(pk PublicKey)
types/announcement.go:156
↓ 2 callers
Method
MarshalBinary
(buffer []byte)
types/announcement.go:86
next →
1–100 of 543, ranked by callers