Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidTaskType = fmt.Errorf("not a valid TaskType, try [%s]", strings.Join(_TaskTypeNames, ", "))
Functions ¶
func TaskTypeNames ¶
func TaskTypeNames() []string
TaskTypeNames returns a list of possible string values of TaskType.
Types ¶
type TaskType ¶
type TaskType string
ENUM(tgfiles,tphpics,parseditem,directlinks,aria2,ytdlp,transfer)
const ( // TaskTypeTgfiles is a TaskType of type tgfiles. TaskTypeTgfiles TaskType = "tgfiles" // TaskTypeTphpics is a TaskType of type tphpics. TaskTypeTphpics TaskType = "tphpics" // TaskTypeParseditem is a TaskType of type parseditem. TaskTypeParseditem TaskType = "parseditem" // TaskTypeDirectlinks is a TaskType of type directlinks. TaskTypeDirectlinks TaskType = "directlinks" // TaskTypeAria2 is a TaskType of type aria2. TaskTypeAria2 TaskType = "aria2" // TaskTypeYtdlp is a TaskType of type ytdlp. TaskTypeYtdlp TaskType = "ytdlp" // TaskTypeTransfer is a TaskType of type transfer. TaskTypeTransfer TaskType = "transfer" )
func ParseTaskType ¶
ParseTaskType attempts to convert a string to a TaskType.
func TaskTypeValues ¶
func TaskTypeValues() []TaskType
TaskTypeValues returns a list of the values for TaskType
func (*TaskType) Get ¶
func (x *TaskType) Get() interface{}
Get implements the Golang flag.Getter interface func.
func (TaskType) IsValid ¶
IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values
Click to show internal directories.
Click to hide internal directories.