Documentation ¶ Index ¶ Variables func SetCDNServer(s string) func SetLogger(l *zap.SugaredLogger) type Claim func Resolve(uri string) (*Claim, error) func (c *Claim) Download(dest string) (*os.File, int64, error) type WriteCounter func (wc *WriteCounter) Write(p []byte) (int, error) Constants ¶ This section is empty. Variables ¶ View Source var ( ErrStreamNotFound = errors.New("could not resolve stream URI") ) Functions ¶ func SetCDNServer ¶ added in v0.5.0 func SetCDNServer(s string) 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) Source Files ¶ View all Source files claim.gologger.go Click to show internal directories. Click to hide internal directories.