MCPcopy Index your code
hub / github.com/koding/kite / addDefaultHandlers

Method addDefaultHandlers

handlers.go:83–99  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81}
82
83func (k *Kite) addDefaultHandlers() {
84 // Default RPC methods
85 k.HandleFunc("kite.systemInfo", handleSystemInfo)
86 k.HandleFunc("kite.heartbeat", k.handleHeartbeat)
87 k.HandleFunc("kite.ping", handlePing).DisableAuthentication()
88 k.HandleFunc("kite.tunnel", handleTunnel)
89 k.HandleFunc("kite.log", k.handleLog)
90 k.HandleFunc("kite.print", handlePrint)
91 k.HandleFunc("kite.prompt", handlePrompt)
92 k.HandleFunc("kite.getPass", handleGetPass)
93 if runtime.GOOS == "darwin" {
94 k.HandleFunc("kite.notify", handleNotifyDarwin)
95 }
96 if k.WebRTCHandler != nil {
97 k.Handle(WebRTCHandlerName, k.WebRTCHandler)
98 }
99}
100
101// handleSystemInfo returns info about the system (CPU, memory, disk...).
102func handleSystemInfo(r *Request) (interface{}, error) {

Callers 1

NewWithConfigFunction · 0.95

Calls 3

HandleFuncMethod · 0.95
HandleMethod · 0.95
DisableAuthenticationMethod · 0.80

Tested by

no test coverage detected