package
Version:
v0.0.0-...-4c3ecd7
Opens a new window with list of versions in this module.
Published: Aug 26, 2021
License: GPL-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
API represents a nutcracker API
NewAPI returns a new nutcracker API. If creds are nil, an unauthenticated
request will be made.
Delete sents a DELETE request
Post sends a POST request
type APIReq map[string]interface{}
APIReq is a convenient way of passing a request
NewAPIReq returns a new APIReq
Set sets a value in a request.
Creds is an interface to send credentials
type MetricVal struct {
Keys int
Secrets int
Views int
Sealed bool
}
NewMetrics creates a new metric poller
Latest returns the latest metric data set
Update updates the metric data from the server
Source Files
¶
Click to show internal directories.
Click to hide internal directories.