server

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Overview

Package server runs the model-runner HTTP daemon.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, cfg Config) error

Run starts the HTTP server and blocks until ctx is cancelled.

Types

type Config

type Config struct {
	Version string
	// ExitFunc is called on fatal errors that cannot be propagated via the
	// callback signature (e.g. OnBackendError). Defaults to os.Exit.
	ExitFunc func(int)
}

Config holds server startup options.

Jump to

Keyboard shortcuts

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