README ¶ PagerDuty Agent: Client Package A minimal client for the corresponding to the server package. For example usage see: The send command. The queue status command. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type Client func NewClient(httpClient *http.Client, serverAddress, secret string) *Client func (c *Client) Do(req *http.Request) (*http.Response, error) func (c *Client) QueueRetry(routingKey string) (*http.Response, error) func (c *Client) QueueStatus(routingKey string) (*http.Response, error) func (c *Client) Send(event eventsapi.Event) (*http.Response, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Client ¶ type Client struct { HTTPClient *http.Client ServerAddress string // contains filtered or unexported fields } func NewClient ¶ func NewClient(httpClient *http.Client, serverAddress, secret string) *Client func (*Client) Do ¶ func (c *Client) Do(req *http.Request) (*http.Response, error) func (*Client) QueueRetry ¶ func (c *Client) QueueRetry(routingKey string) (*http.Response, error) func (*Client) QueueStatus ¶ func (c *Client) QueueStatus(routingKey string) (*http.Response, error) func (*Client) Send ¶ func (c *Client) Send(event eventsapi.Event) (*http.Response, error) Send an event to the agent daemon server. Source Files ¶ View all Source files client.go Click to show internal directories. Click to hide internal directories.