crawler

package
v0.0.0-...-6ecc318 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(srv service) *Handler

func (*Handler) CrawlAllMovies

func (h *Handler) CrawlAllMovies(w http.ResponseWriter, r *http.Request)

func (*Handler) GetAllGenres

func (h *Handler) GetAllGenres(w http.ResponseWriter, r *http.Request)

func (*Handler) Routes

func (h *Handler) Routes() []router.Route

type Response

type Response struct {
	VideoPlaybackId      string `json:"videoPlaybackId"`
	VideoPlaybackToken   string `json:"videoPlaybackToken"`
	VideoLegacyAdUrl     string `json:"videoLegacyAdUrl"`
	VideoLegacyEncodings []struct {
		Definition string `json:"definition"`
		MimeType   string `json:"mimeType"`
		URL        string `json:"url"`
	} `json:"videoLegacyEncodings"`
}

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(movieService movieService) *Service

func NewServiceCLI

func NewServiceCLI(movieService movieService) *Service

func (*Service) CrawlAllMovies

func (s *Service) CrawlAllMovies() ([]*types.MovieInfo, error)

func (*Service) CrawlMovieInfo

func (s *Service) CrawlMovieInfo(link string)

func (*Service) GetAllGenres

func (s *Service) GetAllGenres() []string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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