Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { ListAll() ([]Snitch, error) List(snitchToken string) (Snitch, error) Create(newSnitch Snitch) (Snitch, error) Delete(snitchToken string) (bool, error) FindSnitchesByName(snitchName string) ([]Snitch, error) Update(updateSnitch Snitch) (Snitch, error) CheckIn(s Snitch) error }
Client is a wrapper interface for the dmsClient to allow for easier testing
type Snitch ¶
type Snitch struct { Name string `json:"name"` Token string `json:"token"` Href string `json:"href"` Tags []string `json:"tags"` Notes string `json:"notes"` Status string `json:"status"` CheckedInAt string `json:"checked_in_at"` CheckInURL string `json:"check_in_url"` CreatedAt string `json:"created_at"` Interval string `json:"interval"` AlertType string `json:"alert_type"` }
Snitch Struct
Click to show internal directories.
Click to hide internal directories.