Documentation ¶
Index ¶
Constants ¶
View Source
const ( FileExtJsonlGzip = ".jsonl.gz" FileExtParquet = ".parquet" LocalTempDirPattern = "penguin_stats-archiver-*" ArchiverChanBufferSize = 1000 )
Variables ¶
View Source
var ErrFileAlreadyExists = errors.New("file already exists")
Functions ¶
This section is empty.
Types ¶
type Archiver ¶
type Archiver struct { S3Client *s3.Client S3Bucket string // S3Prefix is for the files in the bucket with no leading slash but optionally (typically) with trailing slash // e.g. "v1/" or simply "" (empty string) S3Prefix string RealmName string // contains filtered or unexported fields }
func (*Archiver) Collect ¶
Caller MUST use WriterCh() to get the channel and ensure necessary data is sent to the channel before calling this function. Moreover, caller should ensure that Collect runs only once and runs on a different goroutine from the one that sends data to the channel to avoid deadlocks.
Click to show internal directories.
Click to hide internal directories.