Documentation ¶
Index ¶
- func AddRecordsToBatch(batch chunk.WriteBatch, tableName string, start, numRecords int)
- func AddRecordsToDB(t *testing.T, path string, dbClient *local.BoltIndexClient, ...)
- func CompareDBs(t *testing.T, db1, db2 *bbolt.DB)
- func SetupDBTablesAtPath(t *testing.T, tableName, path string, dbs map[string]DBRecords) string
- func TestMultiTableQuery(t *testing.T, queries []chunk.IndexQuery, querier MultiTableQuerier, ...)
- func TestSingleDBQuery(t *testing.T, query chunk.IndexQuery, db *bbolt.DB, querier SingleDBQuerier, ...)
- func TestSingleQuery(t *testing.T, query chunk.IndexQuery, querier SingleTableQuerier, ...)
- type DBRecords
- type MultiTableQuerier
- type SingleDBQuerier
- type SingleTableQuerier
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRecordsToBatch ¶
func AddRecordsToBatch(batch chunk.WriteBatch, tableName string, start, numRecords int)
func AddRecordsToDB ¶
func SetupDBTablesAtPath ¶
func TestMultiTableQuery ¶
func TestMultiTableQuery(t *testing.T, queries []chunk.IndexQuery, querier MultiTableQuerier, start, numRecords int)
func TestSingleDBQuery ¶
func TestSingleDBQuery(t *testing.T, query chunk.IndexQuery, db *bbolt.DB, querier SingleDBQuerier, start, numRecords int)
func TestSingleQuery ¶
func TestSingleQuery(t *testing.T, query chunk.IndexQuery, querier SingleTableQuerier, start, numRecords int)
Types ¶
type MultiTableQuerier ¶
type MultiTableQuerier interface {
QueryPages(ctx context.Context, queries []chunk.IndexQuery, callback chunk_util.Callback) error
}
type SingleDBQuerier ¶
type SingleTableQuerier ¶
type SingleTableQuerier interface {
Query(ctx context.Context, query chunk.IndexQuery, callback chunk_util.Callback) error
}
Click to show internal directories.
Click to hide internal directories.