blob: 5d35ef37d84ae17ec540d7671227257454d27b12 [file] [log] [blame]
package culprit
import (
"context"
pb "go.skia.org/infra/perf/go/culprit/proto/v1"
)
// Data Access layer for Culprit
type Store interface {
// Get fetches stored culprits by ids
Get(ctx context.Context, ids []string) ([]*pb.Culprit, error)
// Upsert can write a new, or update an existing Culprit
Upsert(ctx context.Context, anomaly_group_id string, commits []*pb.Commit) ([]string, error)
}