Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateEvent(event *models.Event) error
- func (c *Client) ListEvents() ([]*models.Event, error)
- func (c *Client) ListRules() ([]*models.Rule, error)
- func (c *Client) RegisterWorker(worker *models.Worker) error
- func (c *Client) ReportWorker(worker *models.Worker) error
- func (c *Client) WatchEvents() <-chan models.Event
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
ServerURL string
}
Client is used to talk to the API server
func (*Client) CreateEvent ¶
CreateEvent creates a new Event
func (*Client) ListEvents ¶
ListEvents lists all events
func (*Client) RegisterWorker ¶
RegisterWorker creates a worker
func (*Client) ReportWorker ¶
ReportWorker sends a worker heartbeat
func (*Client) WatchEvents ¶
WatchEvents setup a HTTP channel to receive event stream
Click to show internal directories.
Click to hide internal directories.