Versions in this module Expand all Collapse all v1 v1.0.1 Nov 17, 2023 Changes in this version + type JSONClient struct + Verifier *ct.SignatureVerifier + func New(uri string, hc *http.Client, opts Options) (*JSONClient, error) + func (c *JSONClient) BaseURI() string + func (c *JSONClient) GetAndParse(ctx context.Context, path string, params map[string]string, rsp interface{}) (*http.Response, []byte, error) + func (c *JSONClient) PostAndParse(ctx context.Context, path string, req, rsp interface{}) (*http.Response, []byte, error) + func (c *JSONClient) PostAndParseWithRetry(ctx context.Context, path string, req, rsp interface{}) (*http.Response, []byte, error) + type Logger interface + Printf func(string, ...interface{}) + type Options struct + Logger Logger + PublicKey string + PublicKeyDER []byte + UserAgent string + func (opts *Options) ParsePublicKey() (crypto.PublicKey, error) + type RspError struct + Body []byte + Err error + StatusCode int + func (e RspError) Error() string