Documentation
¶
Index ¶
Constants ¶
View Source
const (
PingDuration = 5 * time.Second
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionType ¶
type ConnectionType int
const ( SimpleType ConnectionType = iota DialType DialContextType ClientType )
type DebugHandler ¶
type DebugHandler struct {
// contains filtered or unexported fields
}
func (*DebugHandler) Request ¶
func (d *DebugHandler) Request() []byte
func (*DebugHandler) Response ¶
func (d *DebugHandler) Response() []byte
type FakeClient ¶ added in v0.3.1
type FakeClient struct {
elastic.Client
}
type IConn ¶ added in v0.1.0
type IConn interface { Open(bool, ...context.Context) IClient Sniff(context.Context) SetLogger(ILogger) SniffTimeout(time.Duration) // SetCustomHandler is a setter SetCustomHandler(ReqHandler, ResHandler) error // contains filtered or unexported methods }
func DialContext ¶
func NewSimpleClient ¶
type ILogger ¶ added in v0.3.1
type ILogger interface { Fatal(v ...interface{}) Print(v ...interface{}) Printf(format string, v ...interface{}) }
type ReqHandler ¶
type RoundTripper ¶
type RoundTripper struct { ReqFunc ReqHandler ResFunc ResHandler CustomReqFun ReqHandler CustomResFun ResHandler // contains filtered or unexported fields }
type RoundTripperCustom ¶ added in v0.3.13
type RoundTripperCustom struct { CustomReqFun ReqHandler CustomResFun ResHandler // contains filtered or unexported fields }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.