cmd

package
v0.0.0-...-c21cd3b Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2023 License: GPL-3.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UserAgent   = "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.163 Safari/537.36"
	Www6vhaoNet = "www.6vhao.net"
)
View Source
const (
	FormatRunning = "%s/running"
	FormatUpload  = "%s/upload"
)

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func Parse6vhao

func Parse6vhao(inputUrl string, c *colly.Collector) map[string]string

Types

type ProfileCommand

type ProfileCommand string

type RenameCommand

type RenameCommand struct {
	// contains filtered or unexported fields
}

func (*RenameCommand) Execute

func (rc *RenameCommand) Execute() loki.Exec

type SpiderCommand

type SpiderCommand struct {
	SpiderParser map[string]SpiderParse
	C            *colly.Collector
}

func (*SpiderCommand) Execute

func (sc *SpiderCommand) Execute() loki.Exec

func (*SpiderCommand) Parse

func (sc *SpiderCommand) Parse(inputUrl string) SpiderParse

type SpiderInterface

type SpiderInterface interface {
	Parse(string) SpiderParse
}

type SpiderParse

type SpiderParse func(url string, c *colly.Collector) map[string]string

type ThorCommand

type ThorCommand struct {
	// contains filtered or unexported fields
}

func (*ThorCommand) Execute

func (tc *ThorCommand) Execute() loki.Exec

type UploadCommand

type UploadCommand struct {
	HttpClient *http.Client
}

func (*UploadCommand) CheckServer

func (uc *UploadCommand) CheckServer(url string) bool

func (*UploadCommand) Execute

func (uc *UploadCommand) Execute() loki.Exec

func (*UploadCommand) UploadFile

func (uc *UploadCommand) UploadFile(filename, url string)

type WslCommand

type WslCommand struct {
	// contains filtered or unexported fields
}

func (*WslCommand) Execute

func (wc *WslCommand) Execute() loki.Exec

Jump to

Keyboard shortcuts

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