Documentation
¶
Overview ¶
Code generated by GoRetro; DO NOT EDIT.
Code generated by GoRetro; DO NOT EDIT.
Code generated by GoRetro; DO NOT EDIT.
Code generated by GoRetro; DO NOT EDIT.
Index ¶
- type AuthType
- type CatFactsAPIClient
- func (c *CatFactsAPIClient) AnimalFacts(animal_type string) ([]cats.Fact, error)
- func (c *CatFactsAPIClient) Fact(id string) (*cats.Fact, error)
- func (c *CatFactsAPIClient) Facts() ([]cats.Fact, error)
- func (c *CatFactsAPIClient) SetAPIKeyAuth(apiKey string)
- func (c *CatFactsAPIClient) SetBasicAuth(username, password string)
- func (c *CatFactsAPIClient) SetBearerAuth(token string)
- func (c *CatFactsAPIClient) SetCustomAuthFunc(authFunc func() (string, error))
- func (c *CatFactsAPIClient) SetCustomHeader(key, value string)
- type GithubApiClient
- func (c *GithubApiClient) GetCommits(owner string, repo string, since string) ([]github.Commit, error)
- func (c *GithubApiClient) GetForks(owner string, repo string) ([]github.Fork, error)
- func (c *GithubApiClient) GetIssues(owner string, repo string) ([]github.Issue, error)
- func (c *GithubApiClient) GetLanguages(owner string, repo string) (*github.Language, error)
- func (c *GithubApiClient) GetRepositories() ([]github.Repository, error)
- func (c *GithubApiClient) GetStargazers(owner string, repo string) ([]github.Stargazer, error)
- func (c *GithubApiClient) GetTraffic(owner string, repo string) (*github.Traffic, error)
- func (c *GithubApiClient) GetUser() (*github.UserInfo, error)
- func (c *GithubApiClient) SetAPIKeyAuth(apiKey string)
- func (c *GithubApiClient) SetBasicAuth(username, password string)
- func (c *GithubApiClient) SetBearerAuth(token string)
- func (c *GithubApiClient) SetCustomAuthFunc(authFunc func() (string, error))
- func (c *GithubApiClient) SetCustomHeader(key, value string)
- type HttpAPIClient
- func (c *HttpAPIClient) PostExample(input httpbin.PostInput) (*httpbin.PostValue, error)
- func (c *HttpAPIClient) SetAPIKeyAuth(apiKey string)
- func (c *HttpAPIClient) SetBasicAuth(username, password string)
- func (c *HttpAPIClient) SetBearerAuth(token string)
- func (c *HttpAPIClient) SetCustomAuthFunc(authFunc func() (string, error))
- func (c *HttpAPIClient) SetCustomHeader(key, value string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CatFactsAPIClient ¶
type CatFactsAPIClient struct {
BaseURL string
HTTPClient *http.Client
AuthType AuthType
Username string
Password string
APIKey string
BearerToken string
CustomAuthFunc func() (string, error)
CustomHeaders map[string]string
Timeout time.Duration
MaxRetries int
}
func NewCatFactsAPIClient ¶
func NewCatFactsAPIClient(baseURL string) *CatFactsAPIClient
func (*CatFactsAPIClient) AnimalFacts ¶
func (c *CatFactsAPIClient) AnimalFacts(animal_type string) ([]cats.Fact, error)
func (*CatFactsAPIClient) SetAPIKeyAuth ¶
func (c *CatFactsAPIClient) SetAPIKeyAuth(apiKey string)
func (*CatFactsAPIClient) SetBasicAuth ¶
func (c *CatFactsAPIClient) SetBasicAuth(username, password string)
func (*CatFactsAPIClient) SetBearerAuth ¶
func (c *CatFactsAPIClient) SetBearerAuth(token string)
func (*CatFactsAPIClient) SetCustomAuthFunc ¶
func (c *CatFactsAPIClient) SetCustomAuthFunc(authFunc func() (string, error))
func (*CatFactsAPIClient) SetCustomHeader ¶
func (c *CatFactsAPIClient) SetCustomHeader(key, value string)
type GithubApiClient ¶
type GithubApiClient struct {
BaseURL string
HTTPClient *http.Client
AuthType AuthType
Username string
Password string
APIKey string
BearerToken string
CustomAuthFunc func() (string, error)
CustomHeaders map[string]string
Timeout time.Duration
MaxRetries int
}
func NewGithubApiClient ¶
func NewGithubApiClient(baseURL string) *GithubApiClient
func (*GithubApiClient) GetCommits ¶
func (*GithubApiClient) GetLanguages ¶
func (*GithubApiClient) GetRepositories ¶
func (c *GithubApiClient) GetRepositories() ([]github.Repository, error)
func (*GithubApiClient) GetStargazers ¶
func (*GithubApiClient) GetTraffic ¶
func (*GithubApiClient) SetAPIKeyAuth ¶
func (c *GithubApiClient) SetAPIKeyAuth(apiKey string)
func (*GithubApiClient) SetBasicAuth ¶
func (c *GithubApiClient) SetBasicAuth(username, password string)
func (*GithubApiClient) SetBearerAuth ¶
func (c *GithubApiClient) SetBearerAuth(token string)
func (*GithubApiClient) SetCustomAuthFunc ¶
func (c *GithubApiClient) SetCustomAuthFunc(authFunc func() (string, error))
func (*GithubApiClient) SetCustomHeader ¶
func (c *GithubApiClient) SetCustomHeader(key, value string)
type HttpAPIClient ¶
type HttpAPIClient struct {
BaseURL string
HTTPClient *http.Client
AuthType AuthType
Username string
Password string
APIKey string
BearerToken string
CustomAuthFunc func() (string, error)
CustomHeaders map[string]string
Timeout time.Duration
MaxRetries int
}
func NewHttpAPIClient ¶
func NewHttpAPIClient(baseURL string) *HttpAPIClient
func (*HttpAPIClient) PostExample ¶
func (*HttpAPIClient) SetAPIKeyAuth ¶
func (c *HttpAPIClient) SetAPIKeyAuth(apiKey string)
func (*HttpAPIClient) SetBasicAuth ¶
func (c *HttpAPIClient) SetBasicAuth(username, password string)
func (*HttpAPIClient) SetBearerAuth ¶
func (c *HttpAPIClient) SetBearerAuth(token string)
func (*HttpAPIClient) SetCustomAuthFunc ¶
func (c *HttpAPIClient) SetCustomAuthFunc(authFunc func() (string, error))
func (*HttpAPIClient) SetCustomHeader ¶
func (c *HttpAPIClient) SetCustomHeader(key, value string)
Click to show internal directories.
Click to hide internal directories.