MCPcopy
hub / github.com/henrygd/beszel / RequestHandler

Interface RequestHandler

agent/handlers.go:27–30  ·  view source on GitHub ↗

RequestHandler defines the interface for handling specific websocket request types

Source from the content-addressed store, hash-verified

25
26// RequestHandler defines the interface for handling specific websocket request types
27type RequestHandler interface {
28 // Handle processes the request and returns an error if unsuccessful
29 Handle(hctx *HandlerContext) error
30}
31
32// Responder sends handler responses back to the hub (over WS or SSH)
33type Responder interface {

Callers 6

StartServerMethod · 0.65
handleSSHRequestMethod · 0.65
hasSymbolFunction · 0.65
HandleMethod · 0.65
handleHubRequestMethod · 0.65
setupDiSetupFunction · 0.65

Implementers 9

fingerprintHandlerinternal/hub/ws/handlers.go
MockHandleragent/handlers_test.go
HandlerRegistryagent/handlers.go
GetDataHandleragent/handlers.go
CheckFingerprintHandleragent/handlers.go
GetContainerLogsHandleragent/handlers.go
GetContainerInfoHandleragent/handlers.go
GetSmartDataHandleragent/handlers.go
GetSystemdInfoHandleragent/handlers.go

Calls

no outgoing calls

Tested by

no test coverage detected