Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) FetchLibrary ¶
func (c *Client) FetchLibrary(ctx context.Context, states []status.AnnictStatusState, after string, first int) (*LibraryQuery, error)
func (*Client) FetchViewer ¶
func (c *Client) FetchViewer(ctx context.Context) (*ViewerQuery, error)
type EpisodeConnection ¶
type EpisodeConnection struct {
Edges []EpisodeEdge `graphql:"edges"`
}
type EpisodeEdge ¶
type EpisodeEdge struct {
Node Episode `graphql:"node"`
}
type LibraryEntry ¶
type LibraryEntry struct {
Work Work `graphql:"work"`
}
type LibraryEntryConnection ¶
type LibraryEntryConnection struct { Edges []LibraryEntryEdge `graphql:"edges"` PageInfo PageInfo `graphql:"pageInfo"` }
type LibraryEntryEdge ¶
type LibraryEntryEdge struct {
Node LibraryEntry `graphql:"node"`
}
type LibraryQuery ¶
type LibraryQuery struct { Viewer struct { LibraryEntries LibraryEntryConnection `graphql:"libraryEntries(after: $after, first: $first, states: $states)"` } `graphql:"viewer"` }
type StatusState ¶
type StatusState status.AnnictStatusState
type ViewerQuery ¶
type ViewerQuery struct {
Viewer User `graphql:"viewer"`
}
type Work ¶
type Work struct { AnnictID int `graphql:"annictId"` MALAnimeID string `graphql:"malAnimeId"` SyobocalTID int `graphql:"syobocalTid"` Title string `graphql:"title"` ViewerStatusState status.AnnictStatusState `graphql:"viewerStatusState"` NoEpisodes bool `graphql:"noEpisodes"` Episodes EpisodeConnection `graphql:"episodes"` }
Click to show internal directories.
Click to hide internal directories.