Documentation
¶
Index ¶
- type LogRepository
- func (r *LogRepository) GarbageCollection(ctx context.Context) error
- func (r *LogRepository) GetAllCollectionInfoToCompact(ctx context.Context, minCompactionSize uint64) (collectionToCompact []log.GetAllCollectionsToCompactRow, err error)
- func (r *LogRepository) GetLastCompactedOffsetForCollection(ctx context.Context, collectionId string) (compacted_offset int64, err error)
- func (r *LogRepository) GetTotalUncompactedRecordsCount(ctx context.Context) (totalUncompactedDepth int64, err error)
- func (r *LogRepository) InsertRecords(ctx context.Context, collectionId string, records [][]byte) (insertCount int64, err error)
- func (r *LogRepository) PullRecords(ctx context.Context, collectionId string, offset int64, batchSize int, ...) (records []log.RecordLog, err error)
- func (r *LogRepository) PurgeRecords(ctx context.Context) (err error)
- func (r *LogRepository) UpdateCollectionCompactionOffsetPosition(ctx context.Context, collectionId string, offsetPosition int64) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogRepository ¶
type LogRepository struct {
// contains filtered or unexported fields
}
func NewLogRepository ¶
func NewLogRepository(conn *pgxpool.Pool, sysDb sysdb.ISysDB) *LogRepository
func (*LogRepository) GarbageCollection ¶
func (r *LogRepository) GarbageCollection(ctx context.Context) error
func (*LogRepository) GetAllCollectionInfoToCompact ¶
func (r *LogRepository) GetAllCollectionInfoToCompact(ctx context.Context, minCompactionSize uint64) (collectionToCompact []log.GetAllCollectionsToCompactRow, err error)
func (*LogRepository) GetLastCompactedOffsetForCollection ¶
func (*LogRepository) GetTotalUncompactedRecordsCount ¶
func (r *LogRepository) GetTotalUncompactedRecordsCount(ctx context.Context) (totalUncompactedDepth int64, err error)
func (*LogRepository) InsertRecords ¶
func (*LogRepository) PullRecords ¶
func (*LogRepository) PurgeRecords ¶
func (r *LogRepository) PurgeRecords(ctx context.Context) (err error)
func (*LogRepository) UpdateCollectionCompactionOffsetPosition ¶
Click to show internal directories.
Click to hide internal directories.