Documentation ¶
Index ¶
- type Anilistwrapper
- type Client
- func (c Client) AnilistClient(query string) (interface{}, error)
- func (c Client) GetMediaDetails(mediaID int) (interface{}, error)
- func (c Client) GetUserID(userName string) int
- func (c Client) GetUserInformation() (interface{}, error)
- func (c Client) GetUsersAnimeListContent(userID int) (interface{}, error)
- func (c Client) GetUsersAnimeLists(userID int) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Anilistwrapper ¶
type Anilistwrapper interface { AnilistClient(query string) (interface{}, error) GetUserID(userName string) int GetUserInformation() (interface{}, error) GetUsersAnimeLists(userID int) (interface{}, error) GetUsersAnimeListContent(userID int) (interface{}, error) }
Anilistwrapper interface that exposes the public functions in a orderly fashion
func InitClient ¶
func InitClient(token *oauth2.Token) Anilistwrapper
InitClient provides a mechanism to
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client declares the content of the Client
func (Client) AnilistClient ¶
AnilistClient provides an interface with the graphQL API of Anilist
func (Client) GetMediaDetails ¶
GetMediaDetails retrieves details about media from the anilist API
func (Client) GetUserInformation ¶
GetUserInformation retrieves information about the current authenticated user from the API
func (Client) GetUsersAnimeListContent ¶
GetUsersAnimeListContent retrieves the content of an list in anilist
func (Client) GetUsersAnimeLists ¶
GetUsersAnimeLists retrieves information about the current user from the API
Click to show internal directories.
Click to hide internal directories.