Documentation
¶
Index ¶
- Constants
- type IndexStorage
- type StatsStorage
- func (repo *StatsStorage) StatDocumentsCountGet(ctx context.Context, start, end int64) (uint64, error)
- func (repo *StatsStorage) StatDocumentsCountIncrement(ctx context.Context, timestamp time.Time) error
- func (repo *StatsStorage) StatPatientsCountGet(ctx context.Context, start, end int64) (uint64, error)
- func (repo *StatsStorage) StatPatientsCountIncrement(ctx context.Context, timestamp time.Time) error
- func (repo *StatsStorage) SyncLastBlockGet(ctx context.Context) (uint64, error)
- func (repo *StatsStorage) SyncLastBlockSet(ctx context.Context, lastSyncedBlock uint64) error
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 (*StatsStorage) StatDocumentsCountIncrement ¶
func (*StatsStorage) StatPatientsCountGet ¶
func (*StatsStorage) StatPatientsCountIncrement ¶
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
Click to show internal directories.
Click to hide internal directories.