nanaparty

package
v0.0.0-...-eab7b28 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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 EventItem

type EventItem struct {
	Attributes []string
	Content    string
}

type EventItemList

type EventItemList []EventItem

type EventWebsite

type EventWebsite struct {
	Title string
	Url   string
}

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 NanaPartyBiographyOtherInfo

type NanaPartyBiographyOtherInfo struct {
	Title       string
	Annotations []string
}

type NanaPartyBiographyProfile

type NanaPartyBiographyProfile struct {
	Name     string
	Info     map[string]string
	PhotoUrl string
}

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 NanaPartyBiographyVoiceInfo

type NanaPartyBiographyVoiceInfo struct {
	Title       string
	Annotations []string
}

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 NanaPartyBlogComment struct {
	Name    string
	Date    string
	Comment string
}

type NanaPartyBlogDetail

type NanaPartyBlogDetail struct {
	Content  string // HTML
	Comments []*NanaPartyBlogComment
}

type NanaPartyBlogInfo

type NanaPartyBlogInfo struct {
	Date  string
	Title string
	Link  string
}

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.

func New

func New() NanaPartyCollection

New returns a NanaPartyCollection.

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 NanaPartyDiscographyDetailEdition

type NanaPartyDiscographyDetailEdition struct {
	JacketUrl  string
	Title      string
	Attributes []string
}

type NanaPartyDiscographyDetailInformation

type NanaPartyDiscographyDetailInformation struct {
	Title string
	Link  string
}

type NanaPartyDiscographyDetailMovie

type NanaPartyDiscographyDetailMovie struct {
	Type  string
	Title string
	Link  string
}

type NanaPartyDiscographyDetailSpecial

type NanaPartyDiscographyDetailSpecial struct {
}

type NanaPartyDiscographyInfo

type NanaPartyDiscographyInfo struct {
	Group     string
	Link      string
	Form      string
	Date      string
	Title     string
	JacketUrl string
}

type NanaPartyNews

type NanaPartyNews struct {
	Id       string
	Date     string
	Group    string
	Category string
	Title    string
	Detail   string // HTML
}

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 NanaPartyScheduleInfo struct {
	Date     string
	Group    string
	Category string
	Title    string
	Link     string
}

type NanaPartyScheduleRegular

type NanaPartyScheduleRegular struct {
	Category string
	InfoList []*NanaPartyScheduleRegularInfo
}

type NanaPartyScheduleRegularInfo

type NanaPartyScheduleRegularInfo struct {
	Info   string
	Detail string // HTML
}

type NanaPartyTopBannerItem

type NanaPartyTopBannerItem struct {
	Link       string
	PhotoUrl   string
	Annotation string
}

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.

type NanaPartyTopMainItem

type NanaPartyTopMainItem struct {
	ImageUrl   string
	Annotation string
}

type NanaPartyTopMovieItem

type NanaPartyTopMovieItem struct {
	Title    string
	Link     string
	ImageUrl string
}

type NanaPartyTopPickupItem

type NanaPartyTopPickupItem struct {
	Link       string
	ImageUrl   string
	Annotation string
}

type NanaPartyTopTopicItem

type NanaPartyTopTopicItem struct {
	Date             string
	Category         string
	Link             string
	AbbreviatedTitle string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL