run

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunProblem

func RunProblem(r *problem.ProbData, dir string, submission map[string]string) (*problem.Result, error)

Run all testcase in the dir.

func RunWorkflow

func RunWorkflow(w wk.Workflow, dir string, inboundPath map[wk.Groupname]*map[string]string,
	fullscore float64) (*wk.Result, error)

perform a workflow in a directory. inboundPath: map[datagroup_name]*map[field]filename

Types

type InMemoryCache added in v0.0.8

type InMemoryCache struct {
	// contains filtered or unexported fields
}

func (*InMemoryCache) Get added in v0.0.8

func (r *InMemoryCache) Get(hash sha) []string

func (*InMemoryCache) Set added in v0.0.8

func (r *InMemoryCache) Set(hash sha, outputs []string)

type WorkflowCache added in v0.0.8

type WorkflowCache interface {
	// hash value of node and its output files
	Set(hash sha, outputs []string)
	// nil if no cache
	Get(hash sha) []string
}

Jump to

Keyboard shortcuts

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