repository

package
v0.0.0-...-6c088cd Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 6 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) *LogRepository

func (*LogRepository) GetAllCollectionInfoToCompact

func (r *LogRepository) GetAllCollectionInfoToCompact(ctx context.Context) (collectionToCompact []log.GetAllCollectionsToCompactRow, 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