Documentation ¶
Index ¶
Constants ¶
View Source
const (
PluginsRoot = root + ".plugins"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Logger ¶
type Logger struct { }
Logger implements the estransport.Logger interface.
func (*Logger) LogRoundTrip ¶
func (l *Logger) LogRoundTrip( req *http.Request, res *http.Response, err error, start time.Time, dur time.Duration, ) error
LogRoundTrip prints the information about request and response.
func (*Logger) RequestBodyEnabled ¶
RequestBodyEnabled makes the client pass request body to logger
func (*Logger) ResponseBodyEnabled ¶
RequestBodyEnabled makes the client pass response body to logger
type Options ¶
type Options struct { Addresses []string Username string Password string CloudID string `config:"cloudID"` APIKey string `config:"APIKey"` CACert string `config:"CACert"` RetryOnStatus []int DisableRetry bool EnableRetryOnTimeout bool MaxRetries int DiscoverNodesOnStart bool DiscoverNodesInterval time.Duration EnableMetrics bool EnableDebugLogger bool RetryBackoff time.Duration }
func NewOptions ¶
func NewOptionsWithPath ¶
Click to show internal directories.
Click to hide internal directories.