Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ElasticsearchDefaultHost is the default host for elasticsearch. ElasticsearchDefaultHost = "localhost" // ElasticsearchDefaultPort is the default port for elasticsearch. ElasticsearchDefaultPort = "9200" )
Variables ¶
This section is empty.
Functions ¶
func InitClient ¶
func InitClient(t TestLogger, client Connectable, err error)
InitClient initializes a new client if the no error value from creating the client instance is reported. The test logger will be used if an error is found.
Types ¶
type Connectable ¶
type Connectable interface {
Connect() error
}
Connectable defines the minimum interface required to initialize a connected client.
type TestLogger ¶
type TestLogger interface {
Fatal(args ...interface{})
}
TestLogger is used to report fatal errors to the testing framework.
Click to show internal directories.
Click to hide internal directories.