# Packages
Package cli provides additional features for CLIRunner.
Package decode provides decoders for output of a runner.
Package encode provides encoders for input of a runner.
Package http provides additional features for HTTPRunner.
Package schema provides the schema for the output.
Package statistics provides the schema for the statistics section of the output.
No description provided by the author
Package validate contains Validator implementations.
# Functions
AsyncHTTPRequestHandler creates a new asynchronous HTTPRequestHandler.
CallbackURL sets a default callback url.
CLI instantiates a CLIRunner and runs it.
CliIOProducer is the IOProducer for the CliRunner.
Encode sets the encoder of a runner.
FlagParser parses flags and env vars and returns a runner config and options.
GenericDecoder returns a new generic decoder.
GenericEncoder returns a new Encoder that encodes the solution using the given encoder.
GenericRunner creates a new runner from the given components.
HTTP instantiates an HTTPRunner and runs it.
InputDecode sets the input decoder of a runner.
InputValidate sets the input validator of a runner.
IOProduce sets the IOProducer of a runner.
NewCLIRunner is the default CLI runner.
NewHTTPRunner creates a new NewHTTPRunner.
NewIOData creates a new IOData.
NoopOptionsDecoder is a Decoder that returns the option as is.
OptionDecode sets the options decoder of a runner.
ParseSolutions converts "all" to All and "last" to Last.
QueryParamDecoder is a Decoder that returns option from query params.
RequestOverride sets whether to allow the callback url to be overridden by the request header (callback_url).
SetAddr sets the address the http server listens on.
SetHTTPRequestHandler sets the function that handles the http request.
SetHTTPServer sets the http server.
SetLogger sets the logger of the http server.
SetMaxParallel sets the maximum number of parallel requests.
SetRunnerOption sets a runner option on the underlying runner.
SyncHTTPRequestHandler allows the input and option to be sent as body and query parameters.
# Structs
CLIRunnerConfig is the configuration of the CliRunner.
HTTPRunnerConfig defines the configuration of the HTTPRunner.
# Interfaces
ContentTyper is an interface which defines the ContentType function that describes the content type of the encoder.
CPUProfiler is the interface a runner configuration can implement to return the CPU profile path.
Encoder is an interface which defines the Encode function that encodes a struct into a writer.
HTTPRunner is a runner that runs an algorithm as an http server.
IOData describes the data that is used in the IOProducer.
MemoryProfiler is the interface a runner configuration can implement to return the memory profile path.
OutputPather is the interface a runner configuration can implement to return the output path.
Runner defines the interface of the runner.
SolutionLimiter is the interface a runner configuration can implement to control whether all or only the last solution is returned.
# Type aliases
Algorithm is a function that runs an algorithm.
AsyncHTTPRequestHandlerOption configures an AsyncHTTPRequestHandler.
Callback is a function that is called after the request is processed.
Decoder is a function that decodes a reader into a struct.
HTTPRequestHandler is a function that handles an http request.
HTTPRunnerOption configures a HTTPRunner.
IOProducer is a function that produces the input, option and writer.
RunnerOption configures a Runner.
Solutions can be all or last.
Validator is a function that validates the input.