Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { UserAgent string BackendURL *url.URL // contains filtered or unexported fields }
Client holds a connection to the HIBP API.
func NewClient ¶
func NewClient() *Client
NewClient creates a new Client with the appropriate connection details and services used for communicating with the API.
func (*Client) Compromised ¶ added in v0.5.0
Compromised will build and execute a request to HIBP to check to see if the passed value is compromised or not.
func (*Client) NewRequest ¶
NewRequest creates an API request. A relative URL can be provided in urlPath, which will be resolved to the BackendURL of the Client.
Click to show internal directories.
Click to hide internal directories.