Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/koding/kite
/ functions
Functions
619 in github.com/koding/kite
⨍
Functions
619
◇
Types & classes
124
Method
Get
(query *protocol.KontrolQuery)
kontrol/postgres.go:127
Method
Get
Get returns a lock that is bound to a specific id.
kontrol/idlock.go:19
Method
GetKeyFromID
(id string)
kontrol/keypair.go:175
Method
GetKeyFromID
(id string)
kontrol/postgres.go:466
Method
GetKeyFromPublic
(public string)
kontrol/keypair.go:193
Function
GetKontrolKey
GetKontrolKey is used as key getter func for jwt.Parse() function.
kitekey/kitekey.go:128
Method
GetSessionState
GetSessionState gives state of the session.
sockjsclient/sockjsclient.go:290
Method
HandleGetKey
(r *kite.Request)
kontrol/handlers.go:277
Method
HandleGetKites
(r *kite.Request)
kontrol/handlers.go:166
Method
HandleGetToken
(r *kite.Request)
kontrol/handlers.go:207
Method
HandleHTTP
HandleHTTP registers the HTTP handler for the given pattern into the underlying HTTP muxer.
kite.go:264
Method
HandleHeartbeat
(rw http.ResponseWriter, req *http.Request)
kontrol/http.go:17
Method
HandleMachine
(r *kite.Request)
kontrol/handlers.go:244
Method
HandleRegister
(r *kite.Request)
kontrol/handlers.go:19
Method
HandleRegisterHTTP
(rw http.ResponseWriter, req *http.Request)
kontrol/http.go:52
Method
HandleVerify
(r *kite.Request)
kontrol/handlers.go:315
Method
Help
()
kitectl/command/query.go:32
Method
Help
()
kitectl/command/showkey.go:52
Method
Help
()
kitectl/command/register.go:33
Method
Help
()
kitectl/command/install.go:35
Method
Help
()
kitectl/command/list.go:28
Method
ID
ID returns a session id.
sockjsclient/sockjsclient.go:193
Function
Int31n
Int31n returns a pseudo-random int32 in range [0, n).
utils/utils.go:37
Method
Int63
()
utils/utils.go:23
Function
IsSessionClosed
IsSessionClosed tests whether given error is caused by a closed session.
sockjsclient/sockjsclient.go:60
Method
IsValid
(public string)
kontrol/keypair.go:137
Method
IsValid
(public string)
kontrol/keypair.go:211
Method
IsValid
(public string)
kontrol/postgres.go:426
Method
MarshalJSON
()
dnode/callback.go:31
Method
MarshalJSON
MarshalJSON returns the raw bytes of the Partial.
dnode/partial.go:17
Function
MustGet
()
config/config.go:179
Method
MustMap
()
dnode/partial.go:139
Method
MustSlice
()
dnode/partial.go:123
Function
NewCachedStorage
NewCachedStorage creates a new CachedStorage
kontrol/keypair.go:150
Function
NewConfig
()
testutil/testutil.go:90
Function
NewFromKiteKey
NewFromKiteKey parses the given kite key file and gives a new Config value.
config/config.go:154
Function
NewInstall
()
kitectl/command/install.go:25
Method
NewKeyRenewer
NewKeyRenewer renews the internal key every given interval
kontrolclient.go:280
Function
NewKiteKeyUsername
NewKiteKeyUsername is like NewKiteKey() but it uses the given username instead of using the "testuser" name
testutil/testutil.go:26
Function
NewKiteKeyWithKeyPair
(private, public string)
testutil/testutil.go:30
Function
NewList
()
kitectl/command/list.go:18
Function
NewMemKeyPairStorageTTL
(ttl time.Duration)
kontrol/keypair.go:73
Function
NewQuery
()
kitectl/command/query.go:19
Function
NewRegister
()
kitectl/command/register.go:20
Function
NewRun
()
kitectl/command/run.go:17
Function
NewShowkey
()
kitectl/command/showkey.go:40
Function
NewTell
()
kitectl/command/tell.go:19
Function
NewUninstall
()
kitectl/command/uninstall.go:17
Function
NewXHRSession
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
Function
Parse
Parse the kite.key file and return it as JWT token.
kitekey/kitekey.go:84
Function
ParseCallbacks
parseCallbacks parses the message's "callbacks" field and prepares callback functions in "arguments" field.
dnode/callback.go:78
Function
ParseFile
ParseFile reads the given kite key file and parses it as a JWT token.
kitekey/kitekey.go:94
Method
PostHandleFunc
PostHandlerFunc adds a new kite handlerfunc which is executed before the method.
method.go:145
Method
PreHandleFunc
PreHandlerFunc adds a new kite handlerfunc which is executed before the method.
method.go:133
Method
RSAKey
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
Function
RandomPort
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
Function
RandomString
RandomString returns random string read from crypto/rand.
utils/utils.go:42
Method
Read
(p []byte)
sockjsclient/xhr_test.go:18
Method
Read
(b []byte)
tunnelproxy/tunnel.go:66
Method
ReadyNotify
()
tunnelproxy/proxy.go:110
Method
Recv
Recv reads one text frame from session.
sockjsclient/sockjsclient.go:198
Method
RegisterToTunnel
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
Method
RegisterURL
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
Method
RemoteAddr
()
client.go:373
Method
RemoteAddr
RemoteAddr gives network address of the remote client.
sockjsclient/sockjsclient.go:188
Method
Request
Request implements the sockjs.Session interface.
sockjsclient/xhr.go:172
Method
Request
Request implements the sockjs.Session interface.
sockjsclient/sockjsclient.go:298
Method
Run
(remoteConn sockjs.Session)
tunnelproxy/tunnel.go:40
Method
Run
(args []string)
kitectl/command/query.go:51
Method
Run
(_ []string)
kitectl/command/showkey.go:61
Method
Run
(args []string)
kitectl/command/uninstall.go:38
Method
Run
(args []string)
kitectl/command/register.go:48
Method
Run
(args []string)
kitectl/command/tell.go:47
Method
Run
(args []string)
kitectl/command/install.go:45
Method
Run
(_ []string)
kitectl/command/list.go:37
Method
Send
Send sends one text frame to session
sockjsclient/sockjsclient.go:262
Method
SendWebRTCRequest
SendWebRTCRequest sends requests to kontrol for signalling purposes.
kontrolclient.go:209
Method
ServeHTTP
ServeHTTP implements the http.Handler interface.
reverseproxy/reverseproxy.go:96
Method
ServeKite
ServeKite calls h(r)
method.go:39
Method
ServeKite
(r *Request)
method.go:207
Method
ServeKite
ServeKite implements Hander interface.
handlers.go:64
Method
ServerCloseNotify
()
server.go:153
Method
SetupSignalHandler
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
Function
Sleep
Sleeps for 2 seconds and returns true
kite_test.go:491
Function
Sqrt
(r *Request)
kite_test.go:511
Function
Square
Returns the result. Also tests reverse call.
kite_test.go:497
Function
Square
(r *kite.Request)
kontrol/kontrol_test.go:610
Function
Square
(r *kite.Request)
examples/math-register/math-register.go:53
Function
Square
(r *kite.Request)
examples/math/math-kite/math.go:49
Function
SquareCB
Calls the callback with the result. For testing requests with Callback.
kite_test.go:522
Method
String
()
config/transport.go:12
Method
Synopsis
()
kitectl/command/query.go:28
Method
Synopsis
()
kitectl/command/showkey.go:48
Method
Synopsis
()
kitectl/command/uninstall.go:25
Method
Synopsis
()
kitectl/command/register.go:29
Method
Synopsis
()
kitectl/command/tell.go:28
Method
Synopsis
()
kitectl/command/install.go:31
Method
Synopsis
()
kitectl/command/run.go:23
Method
Synopsis
()
kitectl/command/list.go:24
Function
TestConcurrency
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
← previous
next →
401–500 of 619, ranked by callers