controller

package
v0.0.0-...-deb42ed Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL