Versions in this module Expand all Collapse all v1 v1.0.0 Sep 18, 2026 Changes in this version + const DefaultEndpoint + const DefaultTimeout + const DefaultUserAgent + var DefaultClient = New() + var ErrEmptyPassword = errors.New("hibp: password cannot be empty") + var ErrUnexpectedStatus = errors.New("hibp: unexpected HTTP response status") + func Check(ctx context.Context, password string) (bool, int64, error) + func IsPwned(ctx context.Context, password string) (bool, error) + type Client struct + func New(opts ...Option) *Client + func (c *Client) Check(ctx context.Context, password string) (bool, int64, error) + func (c *Client) IsPwned(ctx context.Context, password string) (bool, error) + type Option func(*Client) + func WithEndpoint(endpoint string) Option + func WithHTTPClient(client *http.Client) Option + func WithUserAgent(userAgent string) Option