Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶
type APIClient struct {
BaseURL *url.URL
OAuth APIClientOAuth
// contains filtered or unexported fields
}
func GetAPIClient ¶
func GetSystemKitsu ¶
func GetSystemKitsu() *APIClient
func NewAPIClient ¶
func NewAPIClient(conf *APIClientConfig) *APIClient
func (APIClient) GetAnimeTypeByIds ¶
func (c APIClient) GetAnimeTypeByIds(params *GetAnimeTypeByIdsParams) (APIResponse[map[int]AnimeSubtype], error)
type APIClientConfig ¶
type APIClientConfig struct {
HTTPClient *http.Client
OAuth APIClientConfigOAuth
}
type APIClientConfigOAuth ¶
type APIClientOAuth ¶
type AnimeSubtype ¶
type AnimeSubtype string
const ( AnimeSubtypeMovie AnimeSubtype = "movie" AnimeSubtypeMusic AnimeSubtype = "music" AnimeSubtypeONA AnimeSubtype = "ONA" AnimeSubtypeOVA AnimeSubtype = "OVA" AnimeSubtypeSpecial AnimeSubtype = "special" AnimeSubtypeTV AnimeSubtype = "TV" )
type GetAnimeTypeByIdsParams ¶
type ResponseContainer ¶
type ResponseError ¶
type ResponseError struct {
Err string `json:"error,omitempty"`
ErrDesc string `json:"error_description,omitempty"`
}
func (*ResponseError) Error ¶
func (e *ResponseError) Error() string
Click to show internal directories.
Click to hide internal directories.