impl

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: Apache-2.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 StatelessAdmission

type StatelessAdmission struct {
	DB         backend.DB
	Capacities base.Capacities // aka capacity matrix
	Delta      float64         // fraction of free BW that can be reserved in one request
}

StatelessAdmission can admit a segment reservation without any state other than the DB.

func (*StatelessAdmission) AdmitRsv

func (a *StatelessAdmission) AdmitRsv(ctx context.Context, req *segment.SetupReq) error

AdmitRsv admits a segment reservation. The request will be modified with the allowed and maximum bandwidths if they were computed. It can also return an error that must be checked.

Jump to

Keyboard shortcuts

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