MCPcopy Create free account

hub / github.com/koding/kite / functions

Functions619 in github.com/koding/kite

MethodGet
(query *protocol.KontrolQuery)
kontrol/postgres.go:127
MethodGet
Get returns a lock that is bound to a specific id.
kontrol/idlock.go:19
MethodGetKeyFromID
(id string)
kontrol/keypair.go:175
MethodGetKeyFromID
(id string)
kontrol/postgres.go:466
MethodGetKeyFromPublic
(public string)
kontrol/keypair.go:193
FunctionGetKontrolKey
GetKontrolKey is used as key getter func for jwt.Parse() function.
kitekey/kitekey.go:128
MethodGetSessionState
GetSessionState gives state of the session.
sockjsclient/sockjsclient.go:290
MethodHandleGetKey
(r *kite.Request)
kontrol/handlers.go:277
MethodHandleGetKites
(r *kite.Request)
kontrol/handlers.go:166
MethodHandleGetToken
(r *kite.Request)
kontrol/handlers.go:207
MethodHandleHTTP
HandleHTTP registers the HTTP handler for the given pattern into the underlying HTTP muxer.
kite.go:264
MethodHandleHeartbeat
(rw http.ResponseWriter, req *http.Request)
kontrol/http.go:17
MethodHandleMachine
(r *kite.Request)
kontrol/handlers.go:244
MethodHandleRegister
(r *kite.Request)
kontrol/handlers.go:19
MethodHandleRegisterHTTP
(rw http.ResponseWriter, req *http.Request)
kontrol/http.go:52
MethodHandleVerify
(r *kite.Request)
kontrol/handlers.go:315
MethodHelp
()
kitectl/command/query.go:32
MethodHelp
()
kitectl/command/showkey.go:52
MethodHelp
()
kitectl/command/register.go:33
MethodHelp
()
kitectl/command/install.go:35
MethodHelp
()
kitectl/command/list.go:28
MethodID
ID returns a session id.
sockjsclient/sockjsclient.go:193
FunctionInt31n
Int31n returns a pseudo-random int32 in range [0, n).
utils/utils.go:37
MethodInt63
()
utils/utils.go:23
FunctionIsSessionClosed
IsSessionClosed tests whether given error is caused by a closed session.
sockjsclient/sockjsclient.go:60
MethodIsValid
(public string)
kontrol/keypair.go:137
MethodIsValid
(public string)
kontrol/keypair.go:211
MethodIsValid
(public string)
kontrol/postgres.go:426
MethodMarshalJSON
()
dnode/callback.go:31
MethodMarshalJSON
MarshalJSON returns the raw bytes of the Partial.
dnode/partial.go:17
FunctionMustGet
()
config/config.go:179
MethodMustMap
()
dnode/partial.go:139
MethodMustSlice
()
dnode/partial.go:123
FunctionNewCachedStorage
NewCachedStorage creates a new CachedStorage
kontrol/keypair.go:150
FunctionNewConfig
()
testutil/testutil.go:90
FunctionNewFromKiteKey
NewFromKiteKey parses the given kite key file and gives a new Config value.
config/config.go:154
FunctionNewInstall
()
kitectl/command/install.go:25
MethodNewKeyRenewer
NewKeyRenewer renews the internal key every given interval
kontrolclient.go:280
FunctionNewKiteKeyUsername
NewKiteKeyUsername is like NewKiteKey() but it uses the given username instead of using the "testuser" name
testutil/testutil.go:26
FunctionNewKiteKeyWithKeyPair
(private, public string)
testutil/testutil.go:30
FunctionNewList
()
kitectl/command/list.go:18
FunctionNewMemKeyPairStorageTTL
(ttl time.Duration)
kontrol/keypair.go:73
FunctionNewQuery
()
kitectl/command/query.go:19
FunctionNewRegister
()
kitectl/command/register.go:20
FunctionNewRun
()
kitectl/command/run.go:17
FunctionNewShowkey
()
kitectl/command/showkey.go:40
FunctionNewTell
()
kitectl/command/tell.go:19
FunctionNewUninstall
()
kitectl/command/uninstall.go:17
FunctionNewXHRSession
NewXHRSession returns a new XHRSession, a SockJS client which supports xhr-polling: http://sockjs.github.io/sockjs-protocol/sockjs-protocol-0.3.3.htm
sockjsclient/xhr.go:91
FunctionParse
Parse the kite.key file and return it as JWT token.
kitekey/kitekey.go:84
FunctionParseCallbacks
parseCallbacks parses the message's "callbacks" field and prepares callback functions in "arguments" field.
dnode/callback.go:78
FunctionParseFile
ParseFile reads the given kite key file and parses it as a JWT token.
kitekey/kitekey.go:94
MethodPostHandleFunc
PostHandlerFunc adds a new kite handlerfunc which is executed before the method.
method.go:145
MethodPreHandleFunc
PreHandlerFunc adds a new kite handlerfunc which is executed before the method.
method.go:133
MethodRSAKey
RSAKey returns the corresponding public key for the issuer of the token. It is called by jwt-go package when validating the signature in the token.
kite.go:422
FunctionRandomPort
RandomPort() returns a random port to be used with net.Listen(). It's an helper function to register to kontrol before binding to a port. Note that th
utils/utils.go:52
FunctionRandomString
RandomString returns random string read from crypto/rand.
utils/utils.go:42
MethodRead
(p []byte)
sockjsclient/xhr_test.go:18
MethodRead
(b []byte)
tunnelproxy/tunnel.go:66
MethodReadyNotify
()
tunnelproxy/proxy.go:110
MethodRecv
Recv reads one text frame from session.
sockjsclient/sockjsclient.go:198
MethodRegisterToTunnel
RegisterToTunnel finds a tunnel proxy kite by asking kontrol then registers itself on proxy. On error, retries forever. On every successful registrati
kontrolclient.go:398
MethodRegisterURL
RegisterURL returns a URL that is either local or public. It's an helper method to get a Registration URL that can be passed to Kontrol (via the metho
registerurl.go:22
MethodRemoteAddr
()
client.go:373
MethodRemoteAddr
RemoteAddr gives network address of the remote client.
sockjsclient/sockjsclient.go:188
MethodRequest
Request implements the sockjs.Session interface.
sockjsclient/xhr.go:172
MethodRequest
Request implements the sockjs.Session interface.
sockjsclient/sockjsclient.go:298
MethodRun
(remoteConn sockjs.Session)
tunnelproxy/tunnel.go:40
MethodRun
(args []string)
kitectl/command/query.go:51
MethodRun
(_ []string)
kitectl/command/showkey.go:61
MethodRun
(args []string)
kitectl/command/uninstall.go:38
MethodRun
(args []string)
kitectl/command/register.go:48
MethodRun
(args []string)
kitectl/command/tell.go:47
MethodRun
(args []string)
kitectl/command/install.go:45
MethodRun
(_ []string)
kitectl/command/list.go:37
MethodSend
Send sends one text frame to session
sockjsclient/sockjsclient.go:262
MethodSendWebRTCRequest
SendWebRTCRequest sends requests to kontrol for signalling purposes.
kontrolclient.go:209
MethodServeHTTP
ServeHTTP implements the http.Handler interface.
reverseproxy/reverseproxy.go:96
MethodServeKite
ServeKite calls h(r)
method.go:39
MethodServeKite
(r *Request)
method.go:207
MethodServeKite
ServeKite implements Hander interface.
handlers.go:64
MethodServerCloseNotify
()
server.go:153
MethodSetupSignalHandler
SetupSignalHandler listens to signals and toggles the log level to DEBUG mode when it received a SIGUSR2 signal. Another SIGUSR2 toggles the log level
logger_unix.go:14
FunctionSleep
Sleeps for 2 seconds and returns true
kite_test.go:491
FunctionSqrt
(r *Request)
kite_test.go:511
FunctionSquare
Returns the result. Also tests reverse call.
kite_test.go:497
FunctionSquare
(r *kite.Request)
kontrol/kontrol_test.go:610
FunctionSquare
(r *kite.Request)
examples/math-register/math-register.go:53
FunctionSquare
(r *kite.Request)
examples/math/math-kite/math.go:49
FunctionSquareCB
Calls the callback with the result. For testing requests with Callback.
kite_test.go:522
MethodString
()
config/transport.go:12
MethodSynopsis
()
kitectl/command/query.go:28
MethodSynopsis
()
kitectl/command/showkey.go:48
MethodSynopsis
()
kitectl/command/uninstall.go:25
MethodSynopsis
()
kitectl/command/register.go:29
MethodSynopsis
()
kitectl/command/tell.go:28
MethodSynopsis
()
kitectl/command/install.go:31
MethodSynopsis
()
kitectl/command/run.go:23
MethodSynopsis
()
kitectl/command/list.go:24
FunctionTestConcurrency
Call a single method with multiple clients. This test is implemented to be sure the method is calling back with in the same time and not timing out.
kite_test.go:231
← previousnext →401–500 of 619, ranked by callers