server

package
v0.1.11 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ListenPort     int
	PortRangeStart int
	PortRangeEnd   int
	MaxProcesses   int
	CPUAffinity    bool
	LogLevel       string
	ResultDir      string
	IperfPath      string
}

Config contains daemon server configuration

type DaemonServer

type DaemonServer struct {
	pb.UnimplementedDaemonServiceServer
	// contains filtered or unexported fields
}

DaemonServer implements the DaemonService gRPC service

func NewDaemonServer

func NewDaemonServer(config *Config) (*DaemonServer, error)

NewDaemonServer creates a new daemon gRPC server

func (*DaemonServer) GetResults

GetResults retrieves test results from completed runs

func (*DaemonServer) GetStatus

GetStatus returns current daemon health and resource usage

func (*DaemonServer) Initialize

Initialize initializes the daemon with configuration

func (*DaemonServer) PrepareTest

PrepareTest validates if the daemon can handle the test topology

func (*DaemonServer) StartClients

StartClients starts iperf3 clients to connect to targets

func (*DaemonServer) StartServers

StartServers starts iperf3 servers on allocated ports

func (*DaemonServer) StopAll

StopAll stops all running iperf3 processes

Jump to

Keyboard shortcuts

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