Documentation ¶
Index ¶
- type Arc
- type ArcList
- type Character
- type CharacterList
- type Client
- func (c *Client) ArcByID(ctx context.Context, id int) (Arc, error)
- func (c *Client) Arcs(ctx context.Context, filters ...Filter) func(func(ArcList, error) bool)
- func (c *Client) CharacterByID(ctx context.Context, id int) (Character, error)
- func (c *Client) Characters(ctx context.Context, filters ...Filter) func(func(CharacterList, error) bool)
- func (c *Client) CreatorByID(ctx context.Context, id int) (Creator, error)
- func (c *Client) Creators(ctx context.Context, filters ...Filter) func(func(CreatorList, error) bool)
- func (c *Client) ImprintByID(ctx context.Context, id int) (Imprint, error)
- func (c *Client) Imprints(ctx context.Context, filters ...Filter) func(func(ImprintList, error) bool)
- func (c *Client) IssueByID(ctx context.Context, id int) (Issue, error)
- func (c *Client) Issues(ctx context.Context, filters ...Filter) func(func(IssueList, error) bool)
- func (c *Client) IssuesByArcID(ctx context.Context, id int) func(func(IssueList, error) bool)
- func (c *Client) IssuesByCharacterID(ctx context.Context, id int) func(func(IssueList, error) bool)
- func (c *Client) IssuesBySeriesID(ctx context.Context, id int) func(func(IssueList, error) bool)
- func (c *Client) IssuesByTeamID(ctx context.Context, id int) func(func(IssueList, error) bool)
- func (c *Client) PublisherByID(ctx context.Context, id int) (Publisher, error)
- func (c *Client) Publishers(ctx context.Context, filters ...Filter) func(func(PublisherList, error) bool)
- func (c *Client) Roles(ctx context.Context, filters ...Filter) func(func(RoleList, error) bool)
- func (c *Client) Series(ctx context.Context, filters ...Filter) func(func(SeriesList, error) bool)
- func (c *Client) SeriesByID(ctx context.Context, id int) (Series, error)
- func (c *Client) SeriesByPublisherID(ctx context.Context, id int) func(func(SeriesList, error) bool)
- func (c *Client) SeriesTypes(ctx context.Context, filters ...Filter) func(func(SeriesTypeList, error) bool)
- func (c *Client) TeamByID(ctx context.Context, id int) (Team, error)
- func (c *Client) Teams(ctx context.Context, filters ...Filter) func(func(TeamList, error) bool)
- func (c *Client) UniverseByID(ctx context.Context, id int) (Universe, error)
- func (c *Client) Universes(ctx context.Context, filters ...Filter) func(func(UniverseList, error) bool)
- type Creator
- type CreatorList
- type Filter
- func FilterByComicVineID(comicVineID int) Filter
- func FilterByCoverHash(coverHash string) Filter
- func FilterByCoverMonth(month time.Month) Filter
- func FilterByCoverYear(year int) Filter
- func FilterByDesignation(designation string) Filter
- func FilterByImprintID(id int) Filter
- func FilterByImprintName(name string) Filter
- func FilterByMissingComicVineID(isMissing bool) Filter
- func FilterByModifiedGreaterThan(modified time.Time) Filter
- func FilterByName(name string) Filter
- func FilterByNumber(number string) Filter
- func FilterByPublisherID(id int) Filter
- func FilterByPublisherName(name string) Filter
- func FilterByRating(rating string) Filter
- func FilterBySKU(sku string) Filter
- func FilterBySeriesID(id int) Filter
- func FilterBySeriesName(name string) Filter
- func FilterBySeriesType(name string) Filter
- func FilterBySeriesTypeID(id int) Filter
- func FilterBySeriesVolume(volume int) Filter
- func FilterBySeriesYearBegan(year int) Filter
- func FilterByStatus(status int) Filter
- func FilterByStoreDate(date civil.Date) Filter
- func FilterByStoreDateRangeAfter(date civil.Date) Filter
- func FilterByStoreDateRangeBefore(date civil.Date) Filter
- func FilterByUPC(upc string) Filter
- func FilterByVolume(volume int) Filter
- func FilterByYearBegan(year int) Filter
- func FilterByYearEnded(year int) Filter
- type Imprint
- type ImprintList
- type Issue
- type IssueList
- type Option
- type Publisher
- type PublisherList
- type Reference
- type RoleList
- type Series
- type SeriesList
- type SeriesTypeList
- type Team
- type TeamList
- type URL
- type Universe
- type UniverseList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Character ¶
type Character struct { ID int `json:"id"` Name string `json:"name"` Alias *[]string `json:"alias"` Description *string `json:"desc"` ImageURL *URL `json:"image"` Creators []CreatorList `json:"creators"` Teams []TeamList `json:"teams"` Universes []UniverseList `json:"universes"` ComicVineID *int `json:"cv_id"` ResourceURL URL `json:"resource_url"` Modified time.Time `json:"modified"` }
type CharacterList ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CharacterByID ¶
CharacterByID returns the information of an individual character.
func (*Client) Characters ¶
func (c *Client) Characters(ctx context.Context, filters ...Filter) func(func(CharacterList, error) bool)
Characters returns a list of all the characters.
func (*Client) CreatorByID ¶
func (*Client) ImprintByID ¶
func (*Client) IssuesByArcID ¶
IssuesByArcID returns a list of issues for a story arc.
func (*Client) IssuesByCharacterID ¶
func (*Client) IssuesBySeriesID ¶
func (*Client) IssuesByTeamID ¶
func (*Client) PublisherByID ¶
func (*Client) Publishers ¶
func (*Client) SeriesByID ¶
func (*Client) SeriesByPublisherID ¶
func (*Client) SeriesTypes ¶
func (*Client) UniverseByID ¶
type Creator ¶
type Creator struct { ID int `json:"id"` Name string `json:"name"` Birth *civil.Date `json:"birth"` Death *civil.Date `json:"death"` Description *string `json:"desc"` ImageURL *URL `json:"image"` Alias *[]string `json:"alias"` ComicVineID *int `json:"cv_id"` ResourceURL URL `json:"resource_url"` Modified time.Time `json:"modified"` }
type CreatorList ¶
type Filter ¶
func FilterByComicVineID ¶
func FilterByCoverHash ¶
func FilterByCoverMonth ¶
func FilterByCoverYear ¶
func FilterByDesignation ¶
func FilterByImprintID ¶
func FilterByImprintName ¶
func FilterByName ¶
func FilterByNumber ¶
func FilterByPublisherID ¶
func FilterByPublisherName ¶
func FilterByRating ¶
func FilterBySKU ¶
func FilterBySeriesID ¶
func FilterBySeriesName ¶
func FilterBySeriesType ¶
func FilterBySeriesTypeID ¶
func FilterBySeriesVolume ¶
func FilterBySeriesYearBegan ¶
func FilterByStatus ¶
func FilterByStoreDate ¶
func FilterByUPC ¶
func FilterByVolume ¶
func FilterByYearBegan ¶
func FilterByYearEnded ¶
type Imprint ¶
type Imprint struct { ID int `json:"id"` Name string `json:"name"` Founded *int `json:"founded"` Description *string `json:"desc"` ImageURL *URL `json:"image"` ComicVineID *int `json:"cv_id"` Publisher Reference `json:"publisher"` ResourceURL URL `json:"resource_url"` Modified time.Time `json:"modified"` }
type ImprintList ¶
type Issue ¶
type Issue struct { ID int `json:"id"` Publisher Reference `json:"publisher"` Imprint *Reference `json:"imprint"` Series struct { ID int `json:"id"` Name string `json:"name"` SortName string `json:"sort_name"` Volume int `json:"volume"` Type Reference `json:"series_type"` Genres []Reference `json:"genres"` } `json:"series"` Number string `json:"number"` Title *string `json:"title"` Name []string `json:"name"` CoverDate civil.Date `json:"cover_date"` StoreDate *civil.Date `json:"store_date"` Price string `json:"price"` Rating Reference `json:"rating"` SKU *string `json:"sku"` ISBN *string `json:"isbn"` UPC *string `json:"upc"` PageCount *int `json:"page"` Description *string `json:"desc"` ImageURL *URL `json:"image"` CoverHash *string `json:"cover_hash"` Arcs []ArcList `json:"arcs"` Credits []struct { ID int `json:"id"` Name string `json:"creator"` Roles []Reference `json:"role"` } `json:"credits"` Characters []CharacterList `json:"characters"` Teams []TeamList `json:"teams"` Universes []UniverseList `json:"universes"` Reprints []struct { ID int `json:"id"` Issue string `json:"issue"` } `json:"reprints"` Variants []struct { Name *string `json:"name"` SKU *string `json:"sku"` UPC *string `json:"upc"` ImageURL URL `json:"image"` } `json:"variants"` ComicVineID *int `json:"cv_id"` ResourceURL URL `json:"resource_url"` Modified time.Time `json:"modified"` }
type IssueList ¶
type IssueList struct { ID int `json:"id"` Series struct { Name string `json:"name"` Volume int `json:"volume"` YearBegan int `json:"year_began"` } `json:"series"` Number string `json:"number"` Name string `json:"issue"` CoverDate civil.Date `json:"cover_date"` StoreDate *civil.Date `json:"store_date"` ImageURL *URL `json:"image"` CoverHash *string `json:"cover_hash"` Modified time.Time `json:"modified"` }
type Option ¶
type Option func(*Client)
func WithAuthentication ¶
WithAuthentication sets the username and password to be used for authentication.
func WithCaching ¶
WithCaching enables heuristic caching. If cacheDir is empty, it will use the operating system's default location for user-specific cached data.
func WithClient ¶
type PublisherList ¶
type Series ¶
type Series struct { ID int `json:"id"` Name string `json:"name"` SortName string `json:"sort_name"` Volume int `json:"volume"` Type Reference `json:"series_type"` Status string `json:"status"` Publisher Reference `json:"publisher"` Imprint *Reference `json:"imprint"` YearBegan int `json:"year_began"` YearEnded *int `json:"year_end"` Description *string `json:"desc"` IssueCount int `json:"issue_count"` Genres []Reference `json:"genres"` Associated []struct { ID int `json:"id"` Name string `json:"series"` } `json:"associated"` ComicVineID *int `json:"cv_id"` ResourceURL URL `json:"resource_url"` Modified time.Time `json:"modified"` }
type SeriesList ¶
type SeriesTypeList ¶
type Team ¶
type Team struct { ID int `json:"id"` Name string `json:"name"` Description *string `json:"desc"` ImageURL *URL `json:"image"` Creators []CreatorList `json:"creators"` Universes []UniverseList `json:"universes"` ComicVineID *int `json:"cv_id"` ResourceURL URL `json:"resource_url"` Modified time.Time `json:"modified"` }
Click to show internal directories.
Click to hide internal directories.