Versions in this module Expand all Collapse all v0 v0.5.1 Jul 19, 2022 Changes in this version type Client + func (c *Client) Compromised(value string) (bool, error) + func (c *Client) SetHTTPClient(client *http.Client) *Client v0.1.0 Dec 27, 2019 Changes in this version + type CacheService service + func (s *CacheService) Expire(hash string) + func (s *CacheService) ExpireAll() + func (s *CacheService) Get(hash string) *PwnedStore + func (s *CacheService) IsExpired(hash string) bool + func (s *CacheService) Store(hash string, compromised bool) + type Client struct + AppID string + BackendURL *url.URL + Cache *CacheService + Pwned *PwnedService + UserAgent string + func NewClient() *Client + func (c *Client) Do(req *http.Request) ([]string, error) + func (c *Client) NewRequest(method, urlPath string, body interface{}) (*http.Request, error) + type PwnedService service + func (s *PwnedService) Compromised(value string) (bool, error) + type PwnedStore struct + Compromised bool + Hash string + UpdatedAt *time.Time