processor

package
v0.0.0-...-ef9d934 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2019 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MigrateData

func MigrateData(runsProcessor Runs)

MigrateData handles all the loading and transactions across the full datastore. It should be called from a main(), e.g.

func main() {
  p := experimentalLabeller{}
  processor.MigrateData(p)
}

func ProcessRun

func ProcessRun(ctx context.Context, runsProcessor Runs, dsClient *datastore.Client, key *datastore.Key, wg *sync.WaitGroup)

Types

type ConditionUnsatisfied

type ConditionUnsatisfied struct{}

ConditionUnsatisfied is a non-fatal error when a run does not need to be processed.

func (ConditionUnsatisfied) Error

func (e ConditionUnsatisfied) Error() string

type Runs

type Runs interface {
	ShouldProcessRun(run *shared.TestRun) bool
	ProcessRun(tx *datastore.Transaction, key *datastore.Key, run *shared.TestRun) error
}

Runs is an interface for processors of TestRun entities.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL