srv

package
v0.0.0-...-310a912 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package srv implements a server for the Aite service. Aite manipulates the state and performance of interfaces within a container's network namespace.

Index

Constants

View Source
const (
	// MaxUint32 is the maximum uint32 value. In netem a number of values are
	// expressed by indicating the proportion of max uint32.
	MaxUint32 uint32 = 0xFFFFFFFF
)

Variables

This section is empty.

Functions

This section is empty.

Types

type S

type S struct {
	*apb.UnimplementedAiteServer
	// contains filtered or unexported fields
}

S is the wrapper for the Aite service implementation.

func New

func New() (*S, error)

New returns a new Aite server.

func (*S) SetInterface

func (s *S) SetInterface(ctx context.Context, req *apb.SetInterfaceRequest) (*apb.SetInterfaceResponse, error)

SetInterfaceState implements the InterfaceState RPC for the Aite service. It manipulates parameters of the interface including impairments.

func (*S) Stop

func (s *S) Stop() error

Stop stops the Aite server, cleaning up internal state.

Jump to

Keyboard shortcuts

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