Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ConfigKeyBufferSize is the config name for buffer size. ConfigKeyBufferSize = "buffer-size" // ConfigKeyFormat is the config name for destination format. ConfigKeyFormat = "format" // ConfigKeyPrefix is the config name for S3 destination key prefix. ConfigKeyPrefix = "prefix" // MaxBufferSize determines maximum buffer size a config can accept. // When config with bigger buffer size is parsed, an error is returned. MaxBufferSize uint64 = 100000 // DefaultBufferSize is the value BufferSize assumes when the config omits // the buffer size parameter DefaultBufferSize uint64 = 1000 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Destination ¶
type Destination struct { Buffer []record.Record Config Config Error error Writer writer.Writer Mutex *sync.Mutex }
Destination S3 Connector persists records to an S3 storage. The records are usually buffered and written in batches for performance reasons. The buffer size is determined by config.
func (*Destination) Open ¶
Open parses and initializes the config and makes sure everything is prepared to receive records.
func (*Destination) Teardown ¶
func (s *Destination) Teardown() error
Teardown gracefully disconnects the client
func (*Destination) Validate ¶
func (s *Destination) Validate(cfg plugins.Config) error
Validate takes config and returns an error if some values are missing or incorrect.
Click to show internal directories.
Click to hide internal directories.