Documentation ¶
Index ¶
- Constants
- type Client
- type ClientSet
- type Config
- type Sink
- func (s *Sink) Category() api.Category
- func (s *Sink) Config() interface{}
- func (s *Sink) Consume(batch api.Batch) api.Result
- func (s *Sink) Init(context api.Context) error
- func (s *Sink) SetCodec(c codec.Codec)
- func (s *Sink) Start() error
- func (s *Sink) Stop()
- func (s *Sink) String() string
- func (s *Sink) Type() api.Type
Constants ¶
View Source
const Type = "elasticsearch"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientSet ¶
type ClientSet struct { Version string // contains filtered or unexported fields }
type Config ¶
type Config struct { Hosts []string `yaml:"hosts,omitempty" validate:"required"` UserName string `yaml:"username,omitempty"` Password string `yaml:"password,omitempty"` Index string `yaml:"index,omitempty" validate:"required"` Etype string `yaml:"etype,omitempty"` // elasticsearch type, for v5.* backward compatibility DocumentId string `yaml:"documentId,omitempty"` Schema string `yaml:"schema,omitempty"` Sniff *bool `yaml:"sniff,omitempty"` Gzip *bool `yaml:"gzip,omitempty"` }
Click to show internal directories.
Click to hide internal directories.