Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentHTTP ¶ added in v0.2.0
type AgentHTTP interface { // DisplayMetrics returns a summary of metrics collected by the agent. DisplayMetrics(resp http.ResponseWriter, req *http.Request) (interface{}, error) // ReloadAgent triggers the agent to reload policies and configuration. ReloadAgent(resp http.ResponseWriter, req *http.Request) (interface{}, error) }
AgentHTTP is the interface that defines the HTTP handlers that an Agent must implement in order to be accessible through the HTTP API.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewHTTPServer ¶
func NewHTTPServer(debug, prom bool, cfg *config.HTTP, log hclog.Logger, agent AgentHTTP) (*Server, error)
NewHTTPServer creates a new agent HTTP server.
Click to show internal directories.
Click to hide internal directories.