source

package
v0.0.0-...-7a0f12f Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoMoreVideos = errors.New("no more videos")
View Source
var Sources = make(map[string]Source)

Functions

func Register

func Register(source Source)

func SimpleScrap

func SimpleScrap(method, url string) (jsoniter.RawMessage, error)

Types

type CreateVideo

type CreateVideo struct{}

func (*CreateVideo) Scrap

func (s *CreateVideo) Scrap(result chan Result)

func (*CreateVideo) String

func (s *CreateVideo) String() string

type Result

type Result struct {
	Data jsoniter.RawMessage
	End  bool
}

type Source

type Source interface {
	String() string
	Scrap(result chan Result)
}

type UpdateMember

type UpdateMember struct{}

func (*UpdateMember) Scrap

func (s *UpdateMember) Scrap(result chan Result)

func (*UpdateMember) String

func (s *UpdateMember) String() string

type UpdateVideoMeta

type UpdateVideoMeta struct{}

func (*UpdateVideoMeta) Scrap

func (s *UpdateVideoMeta) Scrap(result chan Result)

func (*UpdateVideoMeta) String

func (s *UpdateVideoMeta) String() string

Jump to

Keyboard shortcuts

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