Documentation
¶
Index ¶
- Variables
- type AtHome
- type AuthorData
- type AuthorList
- type Chapter
- type ChapterData
- type ChapterList
- type Client
- func (c *Client) GetAtHome(ctx context.Context, chapterID string) (*AtHome, error)
- func (c *Client) GetAuthors(ctx context.Context, args QueryArgs) (*AuthorList, error)
- func (c *Client) GetCovers(ctx context.Context, args QueryArgs) (*CoverList, error)
- func (c *Client) GetFeed(ctx context.Context, mangaID string, args QueryArgs) (*ChapterList, error)
- func (c *Client) GetGroups(ctx context.Context, args QueryArgs) (*GroupList, error)
- func (c *Client) GetManga(ctx context.Context, mangaID string) (*Manga, error)
- func (c *Client) PostIDMapping(ctx context.Context, tp string, legacyIDs ...int) (*IDMappingList, error)
- func (c *Client) WithBaseURL(url url.URL) *Client
- func (c *Client) WithHTTPClient(http *http.Client) *Client
- type Cover
- type CoverData
- type CoverList
- type ErrorData
- type Errors
- type Group
- type GroupData
- type GroupList
- type IDMappingData
- type IDMappingList
- type Localized
- type Manga
- type MangaData
- type QueryArgs
- type Relationship
- type Relationships
Constants ¶
This section is empty.
Variables ¶
View Source
var APIBaseURL, _ = url.Parse(`https://api.mangadex.org/`)
Functions ¶
This section is empty.
Types ¶
type AuthorData ¶
type AuthorData struct { ID string Type string Attributes struct { Name string ImageUrl string Biography Localized Twitter string Pixiv string MelonBook string FanBox string Booth string NicoVideo string Skeb string Fantia string Tumblr string Youtube string Weibo string Naver string Website string Version int CreatedAt time.Time UpdatedAt time.Time } Relationships Relationships }
type AuthorList ¶
type Chapter ¶
type Chapter struct { Result string Response string Data ChapterData }
type ChapterData ¶
type ChapterData struct { ID string Type string Attributes struct { Title string Volume string Chapter string Pages int TranslatedLanguage string Uploader string ExternalURL string Version int CreatedAt time.Time UpdatedAt time.Time PublishAt time.Time ReadableAt time.Time } Relationships Relationships }
type ChapterList ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetAuthors ¶
func (*Client) PostIDMapping ¶
type GroupData ¶
type GroupData struct { ID string Type string Attributes struct { Name string AltNames []Localized Website string IRCServer string IRCChannel string Discord string ContactEmail string Description string Twitter string MangaUpdates string FocusedLanguages []string Locked bool Official bool Inactive bool Verified bool PublishDelay int Leader Relationship Members Relationships Version int CreatedAt time.Time UpdatedAt time.Time } Relationships Relationships }
type IDMappingData ¶
type IDMappingList ¶
type Localized ¶
func (*Localized) UnmarshalJSON ¶
type MangaData ¶
type MangaData struct { ID string Type string Attributes struct { Title Localized AltTitles []Localized Description Localized IsLocked bool Links map[string]string OriginalLanguage string LastVolume string LastChapter string PublicationDemographic string Status string Year int ContentRating string ChapterNumbersResetOnNewVolume bool Tags Relationships State string Version int CreatedAt time.Time UpdatedAt time.Time } Relationships Relationships }
type QueryArgs ¶
type QueryArgs struct { IDs []string `url:"ids"` Languages []language.Tag `url:"translatedLanguage"` Mangas []string `url:"manga"` Order map[string]string `url:"order"` Limit int `url:"limit"` Offset int `url:"offset"` EmptyPages string `url:"includeEmptyPages"` FuturePublish string `url:"includeFuturePublishAt"` ExternalURL string `url:"includeExternalUrl"` }
type Relationship ¶
type Relationships ¶
type Relationships struct { Manga []string Chapter []string Author []string Artist []string Group []string Tag []string User []string CustomList []string CoverArt []string Leader []string Member []string Creator []string }
func (*Relationships) UnmarshalJSON ¶
func (rs *Relationships) UnmarshalJSON(data []byte) error
Click to show internal directories.
Click to hide internal directories.