redgifs

package
v0.0.0-...-d1ef7a4 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(url string, metadata model.Metadata, callback func(event event.Event)) model.Extractor

Types

type Redgifs

type Redgifs struct {
	Metadata model.Metadata
	Callback func(event event.Event)
	// contains filtered or unexported fields
}

func (*Redgifs) GetFetch

func (r *Redgifs) GetFetch() fetch.Fetch

func (*Redgifs) QueryMedia

func (r *Redgifs) QueryMedia(url string, limit int, extensions []string, deep bool) (*model.Response, error)

func (*Redgifs) SetExternal

func (r *Redgifs) SetExternal(external model.External)

type SourceType

type SourceType interface {
	// contains filtered or unexported methods
}

SourceType is the interface that all source types implement. The isSourceType method is unexported to restrict implementation to the same package.

type SourceVideo

type SourceVideo struct {
	Id string
}

SourceVideo represents a video source type.

type Video

type Video struct {
	Author  string
	Url     string
	Created time.Time
}

Jump to

Keyboard shortcuts

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