server

package
v2.19.2 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LeaseGetter added in v2.17.0

type LeaseGetter interface {
	GetDHCPLeases() ([]dhcp.NetworkDHCPLease, error)
}

LeaseGetter is an interface for getting DHCP leases.

type Server

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

Server that provides QEMU metadata.

func New

func New(log *slog.Logger, network, initSecretHash string, getter LeaseGetter) *Server

New creates a new Server.

func (*Server) ListenAndServe

func (s *Server) ListenAndServe(port string) error

ListenAndServe on a given port.

Jump to

Keyboard shortcuts

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