feat(agent): add status controller

This commit is contained in:
2024-02-29 17:17:21 +01:00
parent eee7e60a86
commit 56558d7241
13 changed files with 415 additions and 1 deletions

View File

@ -18,6 +18,10 @@ type Client struct {
serverURL string
}
func (c *Client) ServerURL() string {
return c.serverURL
}
func (c *Client) apiGet(ctx context.Context, path string, result any, funcs ...OptionFunc) error {
if err := c.apiDo(ctx, http.MethodGet, path, nil, result, funcs...); err != nil {
return errors.WithStack(err)