types

package
v0.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DefaultThread = 10

Variables

This section is empty.

Functions

func SupportMethods

func SupportMethods() []string

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
	Debug          bool
	RateLimit      int
	Thread         int
	Methods        goflags.StringSlice
	Targets        []string
}

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) IsSupportMethods

func (opt *Options) IsSupportMethods(m string) bool

IsSupportMethods 支持的方法

func (*Options) SetOutput

func (opt *Options) SetOutput()

func (*Options) Validate

func (opt *Options) Validate() error

Jump to

Keyboard shortcuts

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