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
Click to show internal directories.
Click to hide internal directories.