Documentation ¶
Index ¶
Constants ¶
View Source
const Version = "0.1.1"
Version represents the version of this package
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.1.1
type Client struct { PwnedPassword *PwnedPassword // Reference to the PwnedPassword API // contains filtered or unexported fields }
Client is the HIBP client object
type Option ¶ added in v0.1.1
type Option func(*Client)
Option is a function that is used for grouping of Client options.
func WithApiKey ¶ added in v0.1.1
WithApiKey set the optional API key to the Client object
func WithHttpTimeout ¶ added in v0.1.1
WithHttpTimeout overrides the default http client timeout
type PwnedPassword ¶ added in v0.1.1
type PwnedPassword struct {
// contains filtered or unexported fields
}
PwnedPassword is a HIBP Pwned Passwords API client
func (*PwnedPassword) CheckPassword ¶ added in v0.1.1
CheckPassword checks the Pwned Passwords database against a given password string
Click to show internal directories.
Click to hide internal directories.