acestreamid

package
v0.0.0-...-24035bd Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

type Channel struct {
	Name    string
	Href    string
	Count   string
	Streams Streams
}

Channel represents an Acestreamid.com channel information.

func (*Channel) ID

func (ch *Channel) ID() string

ID returns the identifier of the channel

func (*Channel) Refresh

func (ch *Channel) Refresh(client scraper.URLGetter) error

type Channels

type Channels map[string]*Channel

Channels is a collenction of Acestreamid.com Channel.

type Scraper

type Scraper struct {
	Channels Channels
	Client   scraper.URLGetter
	// contains filtered or unexported fields
}

Scraper is the Acestreamid scraper.

func (*Scraper) ChannelByID

func (scpr *Scraper) ChannelByID(id string) *Channel

ChannelByID returns the channel with given id. It returns nil if the channel is not found.

func (*Scraper) Refresh

func (scpr *Scraper) Refresh() error

Refresh updates the scraper informations.

type Stream

type Stream struct {
	Title string
	ID    string
	Site  string
	Time  string
}

Stream represents an Acestreamid.com stream information.

func (*Stream) URL

func (s *Stream) URL() string

type Streams

type Streams []*Stream

Streams is an array of Acestreamid.com Stream.

Jump to

Keyboard shortcuts

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