Documentation
¶
Index ¶
- type HealthController
- func (controller *HealthController) GetHealth(c echo.Context) error
- func (controller *HealthController) GetHealthByAgentId(c echo.Context) error
- func (controller *HealthController) GetHealthWS(c echo.Context) error
- func (controller *HealthController) GetLatestHealthDataForAgentByAgentId(c echo.Context) error
- func (controller *HealthController) GetLatestHealthDataForAgents(c echo.Context) error
- func (controller *HealthController) PostHealth(c echo.Context) error
- type HostController
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthController ¶
type HealthController struct {
// contains filtered or unexported fields
}
HealthController provides a health service to interact with
func NewHealthController ¶
func NewHealthController() *HealthController
NewHealthController returns a new HealthController with the service/repository initialized
func (*HealthController) GetHealth ¶
func (controller *HealthController) GetHealth(c echo.Context) error
GetHealth returns all health data
func (*HealthController) GetHealthByAgentId ¶
func (controller *HealthController) GetHealthByAgentId(c echo.Context) error
GetHealthByAgentId returns all health data for an agent
func (*HealthController) GetHealthWS ¶
func (controller *HealthController) GetHealthWS(c echo.Context) error
GetHealthWS returns all health data via websockets
func (*HealthController) GetLatestHealthDataForAgentByAgentId ¶
func (controller *HealthController) GetLatestHealthDataForAgentByAgentId(c echo.Context) error
GetLatestHealthDataForAgentByAgentId returns all health data for an agent since a given time
func (*HealthController) GetLatestHealthDataForAgents ¶
func (controller *HealthController) GetLatestHealthDataForAgents(c echo.Context) error
GetLatestHealthDataForAgents returns all health data for all agents since a given time
func (*HealthController) PostHealth ¶
func (controller *HealthController) PostHealth(c echo.Context) error
PostHealth adds health data for an agent
type HostController ¶
type HostController struct {
// contains filtered or unexported fields
}
HostController provides a host service to interact with
func NewHostController ¶
func NewHostController() *HostController
NewHostController returns a new HostController with the service/repository initialized
func (*HostController) GetHostById ¶
func (controller *HostController) GetHostById(c echo.Context) error
GetHostById returns information about the host
func (*HostController) GetHosts ¶
func (controller *HostController) GetHosts(c echo.Context) error
GetHost returns all hosts associated with an account
func (*HostController) PostHost ¶
func (controller *HostController) PostHost(c echo.Context) error
PostHost adds host data or updates existing host