MCPcopy Create free account

hub / github.com/distributed/malus / functions

Functions84 in github.com/distributed/malus

↓ 14 callersMethodLen
()
lib/routing.go:80
↓ 11 callersMethodAt
(i int)
lib/routing.go:122
↓ 9 callersFunctionXOR
(a, b string)
lib/utility.go:39
↓ 8 callersMethodPush
(h *RTHost)
lib/routing.go:78
↓ 8 callersMethodString
()
lib/host.go:26
↓ 5 callersMethodCall
(addr net.Addr, name string, args []interface{})
lib/callmanager.go:579
↓ 4 callersFunctionNewRTHostList
()
lib/routing.go:60
↓ 4 callersMethodSort
()
lib/routing.go:102
↓ 4 callersMethodWrite
(p []byte)
lib/callmanager.go:30
↓ 3 callersMethodAddRPC
(name string, fun interface{})
lib/callmanager.go:292
↓ 3 callersFunctionBucketNo
Returns into which bucket the given Distance d falls. BucketNo counts upwards from MSB to LSB, from d[0] to d[len(d)-1], e.g. if the MSB of d[0] is se
lib/utility.go:59
↓ 3 callersMethodCopy
Copies an RTHost and computes the Distance of rh.Host to newref. If newref is "", the old distance is used
lib/routing.go:68
↓ 3 callersFunctionSHA1String
Hashes a string and returns a 20 byte string.
lib/utility.go:32
↓ 3 callersMethodSleep
(howlong uint64)
lib/sleepqueue.go:23
↓ 3 callersMethodSlice
(i, j int)
lib/routing.go:96
↓ 2 callersMethodData
()
lib/routing.go:112
↓ 2 callersMethodEncodeRPC
(rpc *RPC)
lib/callmanager.go:445
↓ 2 callersMethodGetClosest
(t string, n uint)
lib/routing.go:20
↓ 2 callersMethodSeeHost
(h *Host)
lib/routing.go:15
↓ 2 callersMethodSendRPC
(rpc *RPC)
lib/callmanager.go:36
↓ 2 callersMethodfindHost
(h *Host)
lib/routing.go:242
↓ 1 callersMethodDecodePayload
(h *Header, raw []byte, payloadpos int)
lib/callmanager.go:348
↓ 1 callersMethodDispatchAnswer
(rpc *RPC)
lib/callmanager.go:286
↓ 1 callersMethodDispatchPacket
(packet *Packet)
lib/callmanager.go:520
↓ 1 callersMethodDispatchRPC
TODO: errors...
lib/callmanager.go:212
↓ 1 callersMethodDispatchRequest
(rpc *RPC)
lib/callmanager.go:237
↓ 1 callersMethodEncodeHeader
(rpc *RPC)
lib/callmanager.go:470
↓ 1 callersMethodEncodePayload
TODO: this is a misnomer...
lib/callmanager.go:504
↓ 1 callersMethodGetClosest
goroutine safe. not for internal use!
lib/routing.go:375
↓ 1 callersMethodGetHTML
may return "", subject to change
lib/routing.go:19
↓ 1 callersMethodGetReceiveChannel
()
lib/callmanager.go:37
↓ 1 callersMethodLess
(b Distance)
lib/utility.go:80
↓ 1 callersFunctionNewHost
(addr net.Addr, id string)
lib/host.go:15
↓ 1 callersMethodParseHeader
(raw []byte)
lib/callmanager.go:308
↓ 1 callersMethodPopFront
()
lib/routing.go:106
↓ 1 callersMethodReadRPC
(h *Header, payload interface{})
lib/callmanager.go:371
↓ 1 callersMethodRun
()
lib/webinterface.go:37
↓ 1 callersMethodRun
()
lib/callmanager.go:643
↓ 1 callersMethodRun
()
lib/udp.go:81
↓ 1 callersMethodRun
()
lib/sleepqueue.go:62
↓ 1 callersMethodbalanceleftright
(lefti uint)
lib/routing.go:273
↓ 1 callersMethodconstructAnswer
(req *RPC, retcall uint8, retis []interface{})
lib/callmanager.go:192
↓ 1 callersFunctionfind
bootstrap is used destructively. you have been warned.
lib/find.go:111
↓ 1 callersMethodfind
(c *http.Conn, r *http.Request)
lib/webinterface.go:115
↓ 1 callersMethodgetClosest
not goroutine safe. for internal use!
lib/routing.go:383
↓ 1 callersMethodgetDummy
()
lib/webinterface.go:54
↓ 1 callersMethodhtml
not goroutine safe
lib/routing.go:334
↓ 1 callersMethodmain
()
lib/routing.go:157
↓ 1 callersMethodmanageRunning
()
lib/callmanager.go:161
↓ 1 callersMethodnewBucket
()
lib/routing.go:227
↓ 1 callersMethodreceiveLoop
()
lib/udp.go:61
↓ 1 callersFunctionrobot
(oid string, t string, rh *RTHost, retchan chan *robotReturn, cm *CallManager)
lib/find.go:89
↓ 1 callersFunctionrobotParse
(oid string, t string, retis []interface{})
lib/find.go:17
↓ 1 callersMethodseeHost
(h *Host)
lib/routing.go:178
↓ 1 callersMethodsendLoop
()
lib/udp.go:51
↓ 1 callersMethodserver
()
lib/sleepqueue.go:34
↓ 1 callersMethodsleeper
()
lib/sleepqueue.go:46
↓ 1 callersMethodstring
not goroutine safe
lib/routing.go:318
MethodAppend
(m *RTHostList)
lib/routing.go:126
FunctionFarthestNode
(oid string)
lib/utility.go:103
MethodGetHTML
goroutine safe. not for internal use!
lib/routing.go:368
MethodGetReceiveChannel
()
lib/udp.go:46
MethodGetString
may return ""
lib/routing.go:17
MethodGetString
goroutine safe. not for internal use!
lib/routing.go:361
MethodLess
(i, j int)
lib/routing.go:86
FunctionNewBRoutingTable
(id string)
lib/routing.go:130
FunctionNewCallManager
(transceiver Transceiver, rt RoutingTable)
lib/callmanager.go:144
FunctionNewSleepQueue
()
lib/sleepqueue.go:74
FunctionNewUDPTransceiver
(snet string, laddr *net.UDPAddr)
lib/udp.go:26
FunctionNewWebInterface
(addr string, cm *CallManager, rt RoutingTable)
lib/webinterface.go:23
FunctionPing
* */
lib/callmanager.go:668
FunctionSHA1Bytes
Hashes a byte slice and returns a 20 byte string.
lib/utility.go:25
MethodSeeHost
(h *Host)
lib/routing.go:175
MethodSendRPC
(rpc *RPC)
lib/udp.go:40
MethodStop
()
lib/sleepqueue.go:68
FunctionStore
(rpc *RPC, hash string, data string)
lib/callmanager.go:670
MethodString
()
lib/callmanager.go:51
MethodString
()
lib/callmanager.go:88
MethodString
()
lib/callmanager.go:92
MethodString
()
lib/udp.go:17
MethodString
()
lib/utility.go:12
MethodSwap
(i, j int)
lib/routing.go:91
Functionmain
()
main/main.go:16
MethodwrapHandler
this function wraps handlers defined as methods of a WebInterface struct and binds them to a provided *WebInterface
lib/webinterface.go:45