MCPcopy
hub / github.com/riverqueue/river / BenchmarkerInterface

Interface BenchmarkerInterface

cmd/river/rivercli/driver_procurer.go:33–35  ·  view source on GitHub ↗

BenchmarkerInterface is an interface to a Benchmarker. Its reason for existence is to wrap a benchmarker to strip it of its generic parameter, letting us pass it around without having to know the transaction type.

Source from the content-addressed store, hash-verified

31// existence is to wrap a benchmarker to strip it of its generic parameter,
32// letting us pass it around without having to know the transaction type.
33type BenchmarkerInterface interface {
34 Run(ctx context.Context, duration time.Duration, numTotalJobs int) error
35}
36
37// MigratorInterface is an interface to a Migrator. Its reason for existence is
38// to wrap a migrator to strip it of its generic parameter, letting us pass it

Callers

nothing calls this directly

Implementers 8

Replacerrivershared/sqlctemplate/sqlc_template
benchcmd/river/rivercli/river_cli.go
migrateDowncmd/river/rivercli/river_cli.go
migrateGetcmd/river/rivercli/river_cli.go
migrateListcmd/river/rivercli/river_cli.go
migrateUpcmd/river/rivercli/river_cli.go
validatecmd/river/rivercli/river_cli.go
versioncmd/river/rivercli/river_cli.go

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…