Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( errors.New("invalid api key") // ErrNonOkStatusCode a non 2XX status code was returned ErrNonOkStatusCode = errors.New("non 200 status code") )ErrUnauthorised =
Functions ¶
This section is empty.
Types ¶
type HTTPClient ¶
HTTPClient represents an HTTP client that can make a request
type PingRequest ¶
type PingRequest struct { // APIKey used to talk to the API APIKey string Endpoint string Client HTTPClient }
PingRequest handles talking to the Opsgenie Heartbeat API
func New ¶
func New(key string) PingRequest
New creates a PingRequest with a default HTTP client and API key from env variable
Click to show internal directories.
Click to hide internal directories.