usecase

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

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

Go to latest
Published: Aug 6, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decrypter

type Decrypter interface {
	M3u8URLDecrypt(mu *entity.M3u8URL) error
	KeyURLWrapper(uri string) string
	KeyDecrypt(plainKey []byte) ([]byte, error)
}

func NewDecrypter

func NewDecrypter(name string, properties entity.Properties) (Decrypter, error)

func NewDecrypterLocal

func NewDecrypterLocal(properties entity.Properties) (Decrypter, error)

func NewDecrypterNone

func NewDecrypterNone(properties entity.Properties) (Decrypter, error)

func NewDecrypterRemote

func NewDecrypterRemote(props entity.Properties) (Decrypter, error)

type DecrypterConstructor

type DecrypterConstructor func(properties entity.Properties) (Decrypter, error)

type DecrypterLocal

type DecrypterLocal struct {
	Cmd []string
}

func (*DecrypterLocal) KeyDecrypt

func (d *DecrypterLocal) KeyDecrypt(plainKey []byte) ([]byte, error)

func (*DecrypterLocal) KeyURLWrapper

func (d *DecrypterLocal) KeyURLWrapper(uri string) string

func (*DecrypterLocal) M3u8URLDecrypt

func (d *DecrypterLocal) M3u8URLDecrypt(mu *entity.M3u8URL) error

type DecrypterNone

type DecrypterNone struct {
}

func (*DecrypterNone) KeyDecrypt

func (d *DecrypterNone) KeyDecrypt(plainKey []byte) ([]byte, error)

func (*DecrypterNone) KeyURLWrapper

func (d *DecrypterNone) KeyURLWrapper(uri string) string

func (*DecrypterNone) M3u8URLDecrypt

func (d *DecrypterNone) M3u8URLDecrypt(mu *entity.M3u8URL) error

type DecrypterRemote

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

func (*DecrypterRemote) KeyDecrypt

func (d *DecrypterRemote) KeyDecrypt(plainKey []byte) ([]byte, error)

func (*DecrypterRemote) KeyURLWrapper

func (d *DecrypterRemote) KeyURLWrapper(uri string) string

func (*DecrypterRemote) M3u8URLDecrypt

func (d *DecrypterRemote) M3u8URLDecrypt(mu *entity.M3u8URL) error

type Downloader

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

func NewDownloader

func NewDownloader(de Decrypter) *Downloader

func (*Downloader) Download

func (dl *Downloader) Download(mu *entity.M3u8URL) error

Download fetch the m3u8 and download

Jump to

Keyboard shortcuts

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