Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCfgNoPassword = errors.New("username required")
View Source
var ErrCfgNoURL = errors.New("URL required")
View Source
var ErrCfgNoUsername = errors.New("username required")
Functions ¶
func CreatePrefixRange ¶
func NewPercentileQuery ¶
Types ¶
type AuthResponse ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func New ¶
func New(options ...OptionSetter) (*Client, error)
func (*Client) PercentileQuery ¶
type OptionSetter ¶
type OptionSetter func(*Options)
func Insecure ¶
func Insecure() OptionSetter
Insecure disables SSL certificate validation when communicating with NFA.
func Password ¶
func Password(p string) OptionSetter
Password sets the authentication password. This option is required.
func Precision ¶ added in v0.0.10
func Precision(p uint) OptionSetter
Decimals sets the precision to round percentile values. 100 = 2 decimal places.
func RetryCount ¶ added in v0.0.7
func RetryCount(c int) OptionSetter
RetryCount sets the number of times to retry requests.
func RetryTime ¶ added in v0.0.7
func RetryTime(d time.Duration) OptionSetter
RetryTime sets the amount of time to wait between retries.
func URL ¶
func URL(u *url.URL) OptionSetter
URL sets the NFA base URL. This option is required. See ParseURL helper.
func Username ¶
func Username(u string) OptionSetter
Username sets the authentication username. This option is required.
type Options ¶
type ProcessingResponse ¶ added in v0.0.4
Click to show internal directories.
Click to hide internal directories.