exec

package
v0.7.17-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const SurviveListFilePath = "server-list.txt"

Variables

This section is empty.

Functions

func ParsePingItems

func ParsePingItems(b []byte, logger *logrus.Logger) (strings2.IPS, error)

ParsePingItems 解析探活地址区间

func Ping

Ping 执行指令

func Run

Run 执行指令

func Scp

Scp 执行指令

Types

type PingItem

type PingItem struct {
	Ping []struct {
		Address string `yaml:"address"`
		Start   int    `yaml:"start"`
		End     int    `yaml:"end"`
		Port    int    `yaml:"port"`
	} `yaml:"ping"`
}

type TransferType

type TransferType string
const (
	TransferFile TransferType = "file"
	TransferDir  TransferType = "directory"
)

Jump to

Keyboard shortcuts

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