Documentation
¶
Index ¶
- func New(uri string) (*mongo.Client, error)
- func NewTelemetryDB(db *mongo.Database, telemetryTable string, enabled bool, logger *zap.Logger) *telemetryDB
- func NewTestCase(c *kmongo.Collection, log *zap.Logger) *testCaseDB
- type RunDB
- func (r *RunDB) Increment(ctx context.Context, success, failure bool, id string) error
- func (r *RunDB) PutTest(ctx context.Context, t run.Test) error
- func (r *RunDB) Read(ctx context.Context, cid string, user, app, id *string, from, to *time.Time, ...) ([]*run.TestRun, error)
- func (r *RunDB) ReadTest(ctx context.Context, id string) (run.Test, error)
- func (r *RunDB) ReadTests(ctx context.Context, runID string) ([]run.Test, error)
- func (r *RunDB) Upsert(ctx context.Context, testRun run.TestRun) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTelemetryDB ¶ added in v0.3.5
func NewTestCase ¶
func NewTestCase(c *kmongo.Collection, log *zap.Logger) *testCaseDB
Types ¶
Click to show internal directories.
Click to hide internal directories.