tasktype

package
v0.41.1 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: AGPL-3.0 Imports: 2 Imported by: 0

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)

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"
)

func ParseTaskType

func ParseTaskType(name string) (TaskType, error)

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

func (x TaskType) IsValid() bool

IsValid provides a quick way to determine if the typed value is part of the allowed enumerated values

func (*TaskType) Set

func (x *TaskType) Set(val string) error

Set implements the Golang flag.Value interface func.

func (TaskType) String

func (x TaskType) String() string

String implements the Stringer interface.

func (*TaskType) Type

func (x *TaskType) Type() string

Type implements the github.com/spf13/pFlag Value interface.

Jump to

Keyboard shortcuts

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