Documentation ¶
Overview ¶
Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0
Copyright (c) Ultraviolet SPDX-License-Identifier: Apache-2.0
Index ¶
- Constants
- func AlgorithmArgsFromContext(ctx context.Context) []string
- func AlgorithmArgsToContext(ctx context.Context, algoArgs []string) context.Context
- func AlgorithmTypeFromContext(ctx context.Context) string
- func AlgorithmTypeToContext(ctx context.Context, algoType string) context.Context
- type AlgorithType
- type Algorithm
- type Stderr
- type Stdout
Constants ¶
View Source
const ( AlgoTypeBin AlgorithType = "bin" AlgoTypePython AlgorithType = "python" AlgoTypeWasm AlgorithType = "wasm" AlgoTypeDocker AlgorithType = "docker" AlgoTypeKey = "algo_type" AlgoArgsKey = "algo_args" ResultsDir = "results" DatasetsDir = "datasets" AlgoWorkingDir = "/cocos" )
Variables ¶
This section is empty.
Functions ¶
func AlgorithmArgsFromContext ¶ added in v0.3.0
func AlgorithmArgsToContext ¶ added in v0.3.0
Types ¶
type AlgorithType ¶
type AlgorithType string
type Algorithm ¶
type Algorithm interface { // Run executes the algorithm and returns the result. Run() error }
Algorithm is an interface that specifies the API for an algorithm.
Click to show internal directories.
Click to hide internal directories.