claim

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrStreamNotFound = errors.New("could not resolve stream URI")
)

Functions

func SetLogger

func SetLogger(l *zap.SugaredLogger)

Types

type Claim

type Claim struct {
	*ljsonrpc.Claim
	SDHash string
}

func Resolve

func Resolve(uri string) (*Claim, error)

func (*Claim) Download

func (c *Claim) Download(dest string) (*os.File, int64, error)

Download retrieves a video stream from the lbrytv CDN and saves it to a temporary file.

type WriteCounter

type WriteCounter struct {
	Loaded, Size uint64
	Started      time.Time
	URL          string
	// contains filtered or unexported fields
}

func (*WriteCounter) Write

func (wc *WriteCounter) Write(p []byte) (int, error)

Jump to

Keyboard shortcuts

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