types

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ProxyURL is the URL for the proxy server
	ProxyURL string
)

Functions

func ToString

func ToString(data interface{}) string

ToString converts an interface to string in a quick way

Types

type Options

type Options struct {
	URL              goflags.StringSlice
	List             goflags.StringSlice
	EnvURL           goflags.StringSlice
	JolokiaURL       goflags.StringSlice
	JolokiaListURL   goflags.StringSlice
	EnvName          goflags.StringSlice
	Headers          goflags.StringSlice
	ProxyURL         goflags.StringSlice
	Debug            bool
	DisableStdin     bool
	RateLimit        int
	Thread           int
	Methods          goflags.StringSlice
	OutputDir        string
	Targets          []string
	InputReadTimeout time.Duration
	Stdin            bool
	Timeout          int
}

func (*Options) CheckVersion

func (opt *Options) CheckVersion(callback func())

func (*Options) Count

func (opt *Options) Count() int

Count 计算目标有多少个

func (*Options) InitTargets

func (opt *Options) InitTargets()

InitTargets 初始化 targets

func (*Options) IsEnvAuto

func (opt *Options) IsEnvAuto() bool

IsEnvAuto Env自动获取

func (*Options) IsEnvNameAuto

func (opt *Options) IsEnvNameAuto() bool

IsEnvNameAuto EnvName自动获取

func (*Options) IsJolokiaAuto

func (opt *Options) IsJolokiaAuto() bool

IsJolokiaAuto Jolokia自动获取

func (*Options) IsJolokiaListAuto

func (opt *Options) IsJolokiaListAuto() bool

IsJolokiaListAuto JolokiaList自动获取

func (*Options) IsMethodAuto

func (opt *Options) IsMethodAuto() bool

IsMethodAuto Method自动获取

func (*Options) IsNeedHeaderAdd

func (opt *Options) IsNeedHeaderAdd() bool

IsNeedHeaderAdd Header是否需要添加

func (*Options) SetOutput

func (opt *Options) SetOutput()

Jump to

Keyboard shortcuts

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