Documentation
¶
Index ¶
- Constants
- Variables
- func ToQueryString(q interface{}) (string, error)
- type Client
- func (c *Client) AddAgent(a *model.AgentDTO) error
- func (c *Client) AddTask(t *model.TaskDTO) error
- func (c *Client) DeleteAgent(a *model.AgentDTO) error
- func (c *Client) DeleteTask(t *model.TaskDTO) error
- func (c *Client) GetAgentById(id int64) (*model.AgentDTO, error)
- func (c *Client) GetAgentMetrics(id int64) ([]*model.Metric, error)
- func (c *Client) GetAgents(q *model.GetAgentsQuery) ([]*model.AgentDTO, error)
- func (c *Client) GetMetrics(q *model.GetMetricsQuery) ([]*model.Metric, error)
- func (c *Client) GetTaskById(id int64) (*model.TaskDTO, error)
- func (c *Client) GetTasks(q *model.GetTasksQuery) ([]*model.TaskDTO, error)
- func (c *Client) Heartbeat() (bool, error)
- func (c *Client) UpdateAgent(a *model.AgentDTO) error
- func (c *Client) UpdateTask(t *model.TaskDTO) error
Constants ¶
View Source
const Version = "v1"
Variables ¶
Functions ¶
func ToQueryString ¶
Convert an interface{} to a urlencoded querystring
Types ¶
type Client ¶
func (*Client) GetAgentMetrics ¶
func (*Client) GetMetrics ¶
Click to show internal directories.
Click to hide internal directories.