qtvscraper

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRelevantDemo added in v0.1.3

func IsRelevantDemo(demoFilename qdemo.Filename) bool

Types

type Demo

type Demo struct {
	QtvAddress  string    `json:"qtv_address"`
	Time        time.Time `json:"time"`
	Filename    string    `json:"filename"`
	DownloadUrl string    `json:"download_url"`
	QtvplayUrl  string    `json:"qtvplay_url"`
}

type Scraper

type Scraper struct {
	CacheDuration time.Duration
	DemoMaxAge    time.Duration
	// contains filtered or unexported fields
}

func NewScraper

func NewScraper(servers []Server) *Scraper

func (*Scraper) Demos

func (s *Scraper) Demos() []Demo

type Server

type Server struct {
	Address        string `json:"address"`
	DemoDateFormat string `json:"demo_date_format"`
	Timezone       string `json:"timezone"`
}

func (*Server) DemoDownloadUrl

func (s *Server) DemoDownloadUrl(filename string) string

func (*Server) DemoFilenames

func (s *Server) DemoFilenames() ([]string, error)

func (*Server) DemoQtvplayUrl

func (s *Server) DemoQtvplayUrl(filename string) string

Jump to

Keyboard shortcuts

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