Documentation
¶
Index ¶
- Constants
- func SupportMethods() []string
- func ToString(data interface{}) string
- type Options
- func (opt *Options) CheckVersion(callback func())
- func (opt *Options) Count() int
- func (opt *Options) InitTargets()
- func (opt *Options) IsEnvAuto() bool
- func (opt *Options) IsEnvNameAuto() bool
- func (opt *Options) IsJolokiaAuto() bool
- func (opt *Options) IsJolokiaListAuto() bool
- func (opt *Options) IsMethodAuto() bool
- func (opt *Options) IsNeedHeaderAdd() bool
- func (opt *Options) IsSupportMethods(m string) bool
- func (opt *Options) SetOutput()
- func (opt *Options) Validate() error
Constants ¶
View Source
const DefaultThread = 10
Variables ¶
This section is empty.
Functions ¶
func SupportMethods ¶
func SupportMethods() []string
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) IsJolokiaListAuto ¶
IsJolokiaListAuto JolokiaList自动获取
func (*Options) IsNeedHeaderAdd ¶
IsNeedHeaderAdd Header是否需要添加
func (*Options) IsSupportMethods ¶
IsSupportMethods 支持的方法
Click to show internal directories.
Click to hide internal directories.