Documentation ¶
Index ¶
- Constants
- type EventItem
- type EventItemList
- type EventWebsite
- type NanaPartyBiographyCollection
- type NanaPartyBiographyLive
- type NanaPartyBiographyOther
- type NanaPartyBiographyOtherInfo
- type NanaPartyBiographyProfile
- type NanaPartyBiographySpecial
- type NanaPartyBiographyVoice
- type NanaPartyBiographyVoiceInfo
- type NanaPartyBlog
- type NanaPartyBlogComment
- type NanaPartyBlogDetail
- type NanaPartyBlogInfo
- type NanaPartyCollection
- type NanaPartyDiscography
- type NanaPartyDiscographyCollection
- type NanaPartyDiscographyDetail
- type NanaPartyDiscographyDetailEdition
- type NanaPartyDiscographyDetailInformation
- type NanaPartyDiscographyDetailMovie
- type NanaPartyDiscographyDetailSpecial
- type NanaPartyDiscographyInfo
- type NanaPartyNews
- type NanaPartyScheduleCollection
- type NanaPartyScheduleInfo
- type NanaPartyScheduleRegular
- type NanaPartyScheduleRegularInfo
- type NanaPartyTopBannerItem
- type NanaPartyTopCollection
- type NanaPartyTopMainItem
- type NanaPartyTopMovieItem
- type NanaPartyTopPickupItem
- type NanaPartyTopTopicItem
Constants ¶
const ( NanaPartyUrl = "https://www.mizukinana.jp" NanaPartyNewsUrl = NanaPartyUrl + "/news/" NanaPartyBiographyUrl = NanaPartyUrl + "/biography/" NanaPartyBlogUrl = NanaPartyUrl + "/blog/" NanaPartyBlogListUrl = NanaPartyBlogUrl + "backnumber.html" NanaPartyScheduleUrl = NanaPartyUrl + "/schedule/" NanaPartyDiscographyUrl = NanaPartyUrl + "/discography/" )
A URL collection in NanaParty
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventItemList ¶
type EventItemList []EventItem
type EventWebsite ¶
type NanaPartyBiographyCollection ¶
type NanaPartyBiographyCollection interface { // Profile returns a profile info from NanaPartyBiographyUrl Profile() *NanaPartyBiographyProfile // Voice returns a list of voice info from NanaPartyBiographyUrl Voice() []*NanaPartyBiographyVoice // Live returns a list of live info from NanaPartyBiographyUrl Live() []*NanaPartyBiographyLive // Special returns a list of special live/event info from NanaPartyBiographyUrl Special() []*NanaPartyBiographySpecial // Other returns a list of other info from NanaPartyBiographyUrl Other() []*NanaPartyBiographyOther }
NanaPartyBiographyCollection is a collection of resources from NanaPartyBiographyUrl.
type NanaPartyBiographyLive ¶
type NanaPartyBiographyLive struct { Title string Annotations []string EventDay string Events []EventItemList EventWebsites []EventWebsite }
type NanaPartyBiographyOther ¶
type NanaPartyBiographyOther struct { Category string InfoList []NanaPartyBiographyOtherInfo }
type NanaPartyBiographySpecial ¶
type NanaPartyBiographySpecial struct { Title string Annotations []string EventDay string Events []EventItemList EventWebsites []EventWebsite }
type NanaPartyBiographyVoice ¶
type NanaPartyBiographyVoice struct { Category string InfoList []NanaPartyBiographyVoiceInfo }
type NanaPartyBlog ¶
type NanaPartyBlog interface { // Info returns a brief info of the blog post Info() NanaPartyBlogInfo // Detail does a query to the blog post link and returns the details from the blog post Detail(ctx context.Context) (*NanaPartyBlogDetail, error) }
NanaPartyBlog provides a brief info of the blog post, and a method to get detailed info of the blog post.
type NanaPartyBlogComment ¶
type NanaPartyBlogDetail ¶
type NanaPartyBlogDetail struct { Content string // HTML Comments []*NanaPartyBlogComment }
type NanaPartyBlogInfo ¶
type NanaPartyCollection ¶
type NanaPartyCollection interface { // Top does the query to NanaPartyUrl and return a collection from the web page. Top(ctx context.Context) (NanaPartyTopCollection, error) // Biography does the query to NanaPartyBiographyUrl and return a collection from the web page. Biography(ctx context.Context) (NanaPartyBiographyCollection, error) // Blog does the query to the NanaPartyBlogListUrl and return a list of Blog from the web page. Blog(ctx context.Context) ([]NanaPartyBlog, error) // News does the query to NanaPartyNewsUrl and returns a list of news from the web page. News(ctx context.Context) ([]*NanaPartyNews, error) // Schedule does the query to NanaPartyScheduleUrl and returns a collection from the web page. Schedule(ctx context.Context) (NanaPartyScheduleCollection, error) // Discography does the query to NanaPartyDiscographyUrl and returns a collection from the web page. Discography(ctx context.Context) (NanaPartyDiscographyCollection, error) }
NanaPartyCollection is a collection of resources from the whole NanaParty website.
type NanaPartyDiscography ¶
type NanaPartyDiscography interface { // Info returns the info of recording. Info() NanaPartyDiscographyInfo // Detail does the query to the recording web page and returns the details of the recording. Detail(ctx context.Context) (*NanaPartyDiscographyDetail, error) }
NanaPartyDiscography provides a brief info of the discography, and a method to get detailed info of the discography.
type NanaPartyDiscographyCollection ¶
type NanaPartyDiscographyCollection interface { // Discographies return a list of recording info. Discographies() []NanaPartyDiscography }
NanaPartyDiscographyCollection is a collection of resource from NanaPartyDiscographyUrl
type NanaPartyDiscographyDetail ¶
type NanaPartyDiscographyDetail struct { // TODO: 収録内容 Editions []*NanaPartyDiscographyDetailEdition Special []*NanaPartyDiscographyDetailSpecial Information []*NanaPartyDiscographyDetailInformation Movie []*NanaPartyDiscographyDetailMovie }
type NanaPartyDiscographyDetailSpecial ¶
type NanaPartyDiscographyDetailSpecial struct { }
type NanaPartyNews ¶
type NanaPartyScheduleCollection ¶
type NanaPartyScheduleCollection interface { // Regular returns a list of regular schedule Regular() []*NanaPartyScheduleRegular // Info returns a list of schedule information Info() []*NanaPartyScheduleInfo }
NanaPartyScheduleCollection is a collection of resource from NanaPartyScheduleUrl
type NanaPartyScheduleInfo ¶
type NanaPartyScheduleRegular ¶
type NanaPartyScheduleRegular struct { Category string InfoList []*NanaPartyScheduleRegularInfo }
type NanaPartyTopBannerItem ¶
type NanaPartyTopCollection ¶
type NanaPartyTopCollection interface { // Main returns a list of top-main item in NanaPartyUrl Main() []*NanaPartyTopMainItem // Main returns a list of top-pickup item in NanaPartyUrl Pickup() []*NanaPartyTopPickupItem // Main returns the top-movie item in NanaPartyUrl Movie() *NanaPartyTopMovieItem // Main returns a list of top-banner item in NanaPartyUrl Banner() []*NanaPartyTopBannerItem // Main returns a list of top-topic item in NanaPartyUrl Topic() []*NanaPartyTopTopicItem }
NanaPartyBiographyCollection is a collection of resources from NanaPartyUrl.