Documentation
¶
Index ¶
- Constants
- type Client
- func (m *Client) ConfigList(options *ClientOptions) error
- func (m *Client) ControlBpf(options *ClientControlBpfOptions) error
- func (m *Client) ControlVerify(options *ClientOptions) error
- func (m *Client) MetricsReceive(options *ClientOptions) error
- func (m *Client) Request(method string, uri string, content []byte) ([]byte, int, error)
- type ClientControlBpfOptions
- type ClientOptions
- type ControlBpfReq
- type ControlVerifyReq
- type MetricsReceiveReq
- type Server
Constants ¶
View Source
const ( //default debug option DefaultDebug = false // current api version CurrentAPIVersion = "/api/v1.0" )
View Source
const ( // number of milliseconds for timeout in // client http call DefaultHTTPTimeout = 2000 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) ConfigList ¶
func (m *Client) ConfigList(options *ClientOptions) error
func (*Client) ControlBpf ¶
func (m *Client) ControlBpf(options *ClientControlBpfOptions) error
func (*Client) ControlVerify ¶
func (m *Client) ControlVerify(options *ClientOptions) error
func (*Client) MetricsReceive ¶
func (m *Client) MetricsReceive(options *ClientOptions) error
type ClientControlBpfOptions ¶
type ClientOptions ¶
type ClientOptions struct {
Dryrun bool
}
type ControlBpfReq ¶
type ControlBpfReq struct {
Dryrun bool `json:"dryrun"`
Option string `json:"option"`
Value bool `json:"value"`
ValueList []string `json:"values"`
}
func (*ControlBpfReq) AsJSON ¶
func (c *ControlBpfReq) AsJSON() []byte
func (*ControlBpfReq) AsString ¶
func (c *ControlBpfReq) AsString() string
type ControlVerifyReq ¶
type ControlVerifyReq struct {
Dryrun bool `json:"dryrun"`
}
func (*ControlVerifyReq) AsJSON ¶
func (c *ControlVerifyReq) AsJSON() []byte
func (*ControlVerifyReq) AsString ¶
func (c *ControlVerifyReq) AsString() string
type MetricsReceiveReq ¶
type MetricsReceiveReq struct {
Dryrun bool `json:"dryrun"`
}
func (*MetricsReceiveReq) AsJSON ¶
func (c *MetricsReceiveReq) AsJSON() []byte
func (*MetricsReceiveReq) AsString ¶
func (c *MetricsReceiveReq) AsString() string
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) CreateGroup ¶
Click to show internal directories.
Click to hide internal directories.