Documentation ¶
Index ¶
Constants ¶
View Source
const S3FilesWrittenLength = 100
S3FilesWrittenLength defines the number of last filenames an S3 Writer keep track of when storing files in S3. This is only used in tests.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Batch ¶
Batch describes the data that needs to be saved by the Writer
func (*Batch) LastPosition ¶
LastPosition returns the position of the last record in the batch.
type Local ¶
Local writer dumps bytes into a local file. The file will be placed in a directory defined by path property.
func (*Local) LastPosition ¶
LastPosition returns the last persisted position
type S3 ¶
type S3 struct { KeyPrefix string Bucket string Position record.Position Error error FilesWritten []string Client *s3.Client }
S3 writer stores batch bytes into an S3 bucket as a file.
func (*S3) LastPosition ¶
LastPosition returns the last persisted position
type S3Config ¶
type S3Config struct { AccessKeyID string SecretAccessKey string SessionToken string Region string Bucket string KeyPrefix string }
S3Config is a type used to initialize an S3 Writer
Click to show internal directories.
Click to hide internal directories.