cmd

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2022 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Task    CommandType = "Task"
	Sys                 = "Sys"
	MMDB                = "MMDB"
	Cron                = "Cron"
	Proxy               = "Proxy"
	Startup             = "Startup"
	Auto                = "Auto"

	OnName  = "ON"
	OffName = "OFF"

	ON      Type = 0
	OFF     Type = 1
	Invalid Type = -1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandType

type CommandType string

func (CommandType) GetName

func (t CommandType) GetName() string

func (CommandType) IsValid

func (t CommandType) IsValid(value GeneralType) bool

type GeneralType

type GeneralType interface {
	String() string
	GetCommandType() CommandType
	GetDefault() GeneralType
	IsON() bool
}

type Type

type Type int8

func (Type) GetCommandType

func (t Type) GetCommandType() CommandType

GetCommandType implements cmd.GeneralType

func (Type) GetDefault

func (t Type) GetDefault() GeneralType

GetDefault implements cmd.GeneralType

func (Type) IsON

func (t Type) IsON() bool

IsON implements cmd.GeneralType

func (Type) IsValid

func (t Type) IsValid() bool

func (Type) String

func (t Type) String() string

String implements cmd.GeneralType

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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