model

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseResp

type BaseResp struct {
	Code    int64  `json:"code,required"`
	Message string `json:"message,required"`
}

type DownloaderReq

type DownloaderReq struct {
	SrcURL       string  `json:"src_url,required"`
	SrcName      string  `json:"src_name,required"`
	SrcShortName *string `json:"src_short_name,omitempty"`
	CachePath    *string `json:"cache_path,omitempty"`
	FilePath     *string `json:"file_path,omitempty"`
	WorkerNum    *int64  `json:"worker_num,omitempty"`
}

type DownloaderResp

type DownloaderResp struct {
	BaseResp *BaseResp `json:"base_resp,required"`
}

type EncryptionInfo

type EncryptionInfo struct {
	Method string `json:"method,required"`
	Key    string `json:"key,required"`
	URI    string `json:"uri,required"`
	IV     string `json:"iv,required"`
}

type M3U8Info

type M3U8Info struct {
	RootURL        string          `json:"root_url,required"`
	TsURLs         []string        `json:"ts_ur_ls,required"`
	TsLengths      []float64       `json:"ts_lengths,required"`
	Name           string          `json:"name,required"`
	ShortName      string          `json:"short_name,required"`
	EncryptionInfo *EncryptionInfo `json:"encryption_info,omitempty"`
}

Jump to

Keyboard shortcuts

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