Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentCommander ¶
type AgentCommander interface {
SendConfigToAgent(agentId uuid.UUID, configContent string) error
RestartAgent(agentId uuid.UUID) error
RestartAgentsInGroup(groupId string) ([]uuid.UUID, []error)
SendConfigToAgentsInGroup(groupId string, configContent string) ([]uuid.UUID, []error)
}
AgentCommander defines the interface for sending commands to agents
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents the HTTP API server
func NewServer ¶
func NewServer(agentService services.AgentService, telemetryService services.TelemetryQueryService, commander AgentCommander, logger *zap.Logger) *Server
NewServer creates a new API server
Click to show internal directories.
Click to hide internal directories.