Versions in this module Expand all Collapse all v1 v1.0.0 Jun 17, 2022 Changes in this version + var ErrNoCredentials = fmt.Errorf("no credentials provided") + type Client struct + func NewClient(opts ...ClientOption) (*Client, error) + func (a *Client) SetCredentials(username, password string) + func (a *Client) Unvote(ctx context.Context, pkgbase string) error + func (a *Client) Vote(ctx context.Context, pkgbase string) error + type ClientOption func(*Client) error + func WithBaseURL(baseURL string) ClientOption + func WithHTTPClient(doer HTTPRequestDoer) ClientOption + func WithUserAgent(userAgent string) ClientOption + type ErrLoginFailed struct + func (e *ErrLoginFailed) Error() string + type ErrVoteFailed struct + func (e *ErrVoteFailed) Error() string + type HTTPRequestDoer interface + Do func(req *http.Request) (*http.Response, error)