package workload

import (
	"context"

	"github.com/pingcap/endless/testcase/tiflash/pkg/checker"
)

type Workload interface {
	// must success
	Prepare(ctx context.Context)
	RunTP(ctx context.Context, errorHandler func(error) error) error
	RunAP(ctx context.Context, errorHandler func(error) error) error
	DBName() string
	SetApThreads(int)
	SetApConnParam([]string)
	GetHistograms() map[string]*checker.Histogram
}
