Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrRequestFailed = errors.New("request failed") ErrArchiveNotFound = errors.New("archive not found") )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client defines the configuration for GitHub client
func NewClient ¶
func NewClient(opts ...ClientOption) *Client
func (*Client) CheckConnection ¶
CheckConnection is validating connection to the API end point
func (*Client) GetLatestVersion ¶
GetLatestVersion returns latest version from the github API
type ClientConfig ¶
ClientConfig defines http client and base url for the API
func (*ClientConfig) Default ¶
func (c *ClientConfig) Default()
func (*ClientConfig) Option ¶
func (c *ClientConfig) Option(opts ...ClientOption)
type ClientOption ¶
type ClientOption interface {
ConfigureClient(*ClientConfig)
}
type WithBaseURL ¶
type WithBaseURL string
func (WithBaseURL) ConfigureClient ¶
func (w WithBaseURL) ConfigureClient(c *ClientConfig)
type WithClient ¶
func (WithClient) ConfigureClient ¶
func (w WithClient) ConfigureClient(c *ClientConfig)
Click to show internal directories.
Click to hide internal directories.