Documentation ¶
Index ¶
Constants ¶
View Source
const DefaultBatchSize = 255
View Source
const (
ErrorMemoryAllocFail = 21
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ESClient ¶
type ESClient struct {
// contains filtered or unexported fields
}
func NewESClient ¶
func NewESClient(a []string, u, p string, opt ...ElasticOption) (*ESClient, error)
func (*ESClient) BulkCreateWithIndex ¶
type ElasticOption ¶
type ElasticOption func(o *elasticOptions)
func WithDebug ¶
func WithDebug() ElasticOption
func WithLogger ¶
func WithLogger(l *zerolog.Logger) ElasticOption
Click to show internal directories.
Click to hide internal directories.