shows

package
v0.0.0-...-9012666 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2017 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Save

func Save(shows *Shows) error

Types

type Show

type Show struct {
	ID             int
	Date           time.Time
	URL            string
	TopicsMarkdown []string
	TopicsText     []string
	ImageURL       string
	ChatLogURL     string
	AudioURL       string
	TorrentURL     string
}

type Shows

type Shows struct {
	Items     []Show
	ItemsByID map[int]Show
	// contains filtered or unexported fields
}

func Get

func Get(fromID int, errHandler func(error)) *Shows

GetShows gets shows data concurrently. Starts from "fromID" (excluded) Returns errors to "errHandler" function.

func Load

func Load() *Shows

func NewShows

func NewShows() *Shows

func (*Shows) Add

func (s *Shows) Add(show Show)

func (Shows) GetItems

func (s Shows) GetItems() []Show

func (Shows) Last

func (s Shows) Last() Show

func (Shows) Len

func (s Shows) Len() int

func (Shows) Less

func (s Shows) Less(i, j int) bool

func (Shows) Swap

func (s Shows) Swap(i, j int)

type ShowsByID

type ShowsByID map[int]Show

Jump to

Keyboard shortcuts

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