tool

package
v0.0.42 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultPort = "9669"
)

Functions

func ServeFile added in v0.0.34

func ServeFile(w http.ResponseWriter, r *http.Request, name string)

Types

type DownloadArgs added in v0.0.32

type DownloadArgs struct {
	Port         *[]string
	Net          *[]string
	Name         *string
	File         *string
	MaxDeepLevel *int
	Host         *[]string
	Auth         *string
	ServerID     *string
	DownloadAll  *bool
	Timeout      *int
	DownloadDir  *string
	// contains filtered or unexported fields
}

type HTTPArgs

type HTTPArgs struct {
	Addr     *string
	RootDir  *string
	Auth     *[]string
	Upload   *string
	ServerID *string
}

type Tool

type Tool struct {
	tool.GMCTool
	// contains filtered or unexported fields
}

func NewTool

func NewTool() *Tool

func (*Tool) Start

func (s *Tool) Start(args interface{}) (err error)

func (*Tool) Stop

func (s *Tool) Stop()

type ToolArgs

type ToolArgs struct {
	ToolName *string
	SubName  *string
	HTTP     *HTTPArgs
	Download *DownloadArgs
}

func NewToolArgs

func NewToolArgs() ToolArgs

Jump to

Keyboard shortcuts

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