server

package
v1.55.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MetricsRecorder

type MetricsRecorder interface {
	Start()
}

MetricsRecorder interface for metrics

type Server

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

Server represents the hypervisor HTTP server

func NewServer

func NewServer(
	ctx context.Context,
	deviceController framework.DeviceController,
	workerController framework.WorkerController,
	allocationController framework.WorkerAllocationController,
	metricsRecorder MetricsRecorder,
	backend framework.Backend,
	port int,
) *Server

NewServer creates a new hypervisor HTTP server

func (*Server) Start

func (s *Server) Start() error

Start starts the HTTP server

func (*Server) Stop

func (s *Server) Stop(ctx context.Context) error

Stop stops the HTTP server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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