Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a thin wrapper around certspotter.Client.
func (*Client) GetIssuances ¶
func (c *Client) GetIssuances(ctx context.Context, opts *certspotter.GetIssuancesOptions) ([]*certspotter.Issuance, *http.Response, error)
GetIssuances returns issuances for options. It takes care of rate limiting and pagination.
func (*Client) SubIssuances ¶
func (c *Client) SubIssuances(ctx context.Context, opts *certspotter.GetIssuancesOptions) <-chan []*certspotter.Issuance
SubIssuances returns a channel of issuances by subscribing to issuances for options.
type Config ¶
type Config struct { // Interval used between polling for new issuances. Interval time.Duration // RateLimit used for sending certspotter api requests in Hz. RateLimit float64 // Token used for certspotter api. Token string // UserAgent used for client agent header. UserAgent string }
Config is used for configuring the client.
Click to show internal directories.
Click to hide internal directories.