Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GrayLog ¶
type GrayLog struct { Servers []string Metrics []string Username string Password string tls.ClientConfig // contains filtered or unexported fields }
func (*GrayLog) Description ¶
func (*GrayLog) SampleConfig ¶
type HTTPClient ¶
type HTTPClient interface { // Returns the result of an http request // // Parameters: // req: HTTP request object // // Returns: // http.Response: HTTP response object // error : Any error that may have occurred MakeRequest(req *http.Request) (*http.Response, error) SetHTTPClient(client *http.Client) HTTPClient() *http.Client }
type Messagebody ¶
type Messagebody struct {
Metrics []string `json:"metrics"`
}
type RealHTTPClient ¶
type RealHTTPClient struct {
// contains filtered or unexported fields
}
func (*RealHTTPClient) HTTPClient ¶
func (c *RealHTTPClient) HTTPClient() *http.Client
func (*RealHTTPClient) MakeRequest ¶
func (*RealHTTPClient) SetHTTPClient ¶
func (c *RealHTTPClient) SetHTTPClient(client *http.Client)
type ResponseMetrics ¶
type ResponseMetrics struct { // total int Metrics []Metric `json:"metrics"` }
Click to show internal directories.
Click to hide internal directories.