client

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

README

PagerDuty Agent: Client Package

A minimal client for the corresponding to the server package.

For example usage see:

Documentation

Index

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.

Jump to

Keyboard shortcuts

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