repository

package
v0.0.0-...-4eea697 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TableNamePatients  = "stat_patients"
	TableNameDocuments = "stat_documents"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IndexStorage

type IndexStorage struct {
	// contains filtered or unexported fields
}

func NewIndexStorage

func NewIndexStorage(db *sqlx.DB) *IndexStorage

func (*IndexStorage) AddNewIndexObject

func (store *IndexStorage) AddNewIndexObject(ctx context.Context, chunk models.IndexChunk) error

func (*IndexStorage) GetAllIndexObjects

func (store *IndexStorage) GetAllIndexObjects(ctx context.Context) ([]models.IndexChunk, error)

type StatsStorage

type StatsStorage struct {
	// contains filtered or unexported fields
}

func NetStatsSotrage

func NetStatsSotrage(db *sqlx.DB) *StatsStorage

func (*StatsStorage) StatDocumentsCountGet

func (repo *StatsStorage) StatDocumentsCountGet(ctx context.Context, start, end int64) (uint64, error)

func (*StatsStorage) StatDocumentsCountIncrement

func (repo *StatsStorage) StatDocumentsCountIncrement(ctx context.Context, timestamp time.Time) error

func (*StatsStorage) StatPatientsCountGet

func (repo *StatsStorage) StatPatientsCountGet(ctx context.Context, start, end int64) (uint64, error)

func (*StatsStorage) StatPatientsCountIncrement

func (repo *StatsStorage) StatPatientsCountIncrement(ctx context.Context, timestamp time.Time) error

func (*StatsStorage) SyncLastBlockGet

func (repo *StatsStorage) SyncLastBlockGet(ctx context.Context) (uint64, error)

func (*StatsStorage) SyncLastBlockSet

func (repo *StatsStorage) SyncLastBlockSet(ctx context.Context, lastSyncedBlock uint64) error

Jump to

Keyboard shortcuts

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