repository

package
v0.0.0-...-2300135 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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 (r *LogRepository) GetLastCompactedOffsetForCollection(ctx context.Context, collectionId string) (compacted_offset int64, err error)

func (*LogRepository) GetTotalUncompactedRecordsCount

func (r *LogRepository) GetTotalUncompactedRecordsCount(ctx context.Context) (totalUncompactedDepth int64, err error)

func (*LogRepository) InsertRecords

func (r *LogRepository) InsertRecords(ctx context.Context, collectionId string, records [][]byte) (insertCount int64, err error)

func (*LogRepository) PullRecords

func (r *LogRepository) PullRecords(ctx context.Context, collectionId string, offset int64, batchSize int, timestamp int64) (records []log.RecordLog, err error)

func (*LogRepository) PurgeRecords

func (r *LogRepository) PurgeRecords(ctx context.Context) (err error)

func (*LogRepository) UpdateCollectionCompactionOffsetPosition

func (r *LogRepository) UpdateCollectionCompactionOffsetPosition(ctx context.Context, collectionId string, offsetPosition int64) (err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL