Documentation ¶
Index ¶
Constants ¶
View Source
const (
DmsApiUrl = "https://api.deadmanssnitch.com/v1/"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { // RequestCount has to be the first words // in order to be 64-aligned on 32-bit architectures. RequestCount uint64 RequestRetries int // contains filtered or unexported fields }
func (*Client) GetRequestCount ¶
func (*Client) ListSnitches ¶
func (c *Client) ListSnitches() (list ResponseSnitchList, error error)
func (*Client) SetAccessToken ¶
func (*Client) SetRetries ¶
func (*Client) SetUserAgent ¶
type ResponseSnitch ¶
type ResponseSnitch struct { Token string `json:"token"` Href string `json:"href"` Name string `json:"name"` Tags []string `json:"tags"` Notes string `json:"notes,omitempty"` Status string `json:"status"` CheckedInAt *time.Time `json:"checked_in_at"` CreatedAt time.Time `json:"created_at"` Interval string `json:"interval"` AlertType string `json:"alert_type"` AlertEmail []interface{} `json:"alert_email"` }
func (*ResponseSnitch) IsHealthy ¶
func (s *ResponseSnitch) IsHealthy() bool
type ResponseSnitchList ¶
type ResponseSnitchList []ResponseSnitch
Click to show internal directories.
Click to hide internal directories.