jsonp

package
v0.0.0-...-cde087c Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DEBUG, INFO, WARN, FATAL = logging.GetLogger()

Functions

func LoadDB_benchmarkFromJson

func LoadDB_benchmarkFromJson(path string) (*datatypes.DB_benchmark, error)

func ReadDrpValuesWithFallbacks

func ReadDrpValuesWithFallbacks(fb *datatypes.DB_data_rate_pattern, drp ...*DrPlayDataRateConfig) (scale float64, freq int, minrate float64, warmup int32)

func ReadTcValuesWithFallbacks

func ReadTcValuesWithFallbacks(fb *datatypes.DB_session, tc ...*DrPlayTrafficControlConfig) (mark_free int32, mark_full int32, extralatency int32, l4spre bool, signalstart bool, queue_size int32)

Types

type BenchmarkDefinition

type BenchmarkDefinition struct {
	Name                      string
	Max_application_bitrate   int
	MaxBitrateEstimationTimeS int
	Patterns                  []BenchmarkPattern
	DrplaySetting             DrplaySetting
}

func LoadBenchmarkDefinitionFromJsonData

func LoadBenchmarkDefinitionFromJsonData(dat []byte) (*BenchmarkDefinition, string, error)

func (*BenchmarkDefinition) CalcMd5

func (bcfg *BenchmarkDefinition) CalcMd5() ([]byte, error)

func (*BenchmarkDefinition) Validate

func (bcfg *BenchmarkDefinition) Validate() error

type BenchmarkDefinitionWrapper

type BenchmarkDefinitionWrapper struct {
	HashStr string `json:"Hash"`
	Inner   BenchmarkDefinition
	// contains filtered or unexported fields
}

func NewBenchmarkDefinitionWrapper

func NewBenchmarkDefinitionWrapper(def BenchmarkDefinition) (BenchmarkDefinitionWrapper, error)

func (*BenchmarkDefinitionWrapper) CheckOrCalcHash

func (bmdw *BenchmarkDefinitionWrapper) CheckOrCalcHash() (err error)

func (*BenchmarkDefinitionWrapper) HumanReadableSummary

func (wbcfg *BenchmarkDefinitionWrapper) HumanReadableSummary() string

func (*BenchmarkDefinitionWrapper) Validate

func (wbcfg *BenchmarkDefinitionWrapper) Validate() error

type BenchmarkPattern

type BenchmarkPattern struct {
	Path string

	HashStr string `json:"Hash"`
	Setting DrplaySetting
	// contains filtered or unexported fields
}

func NewBenchmarkPattern

func NewBenchmarkPattern(path string, setting DrplaySetting) BenchmarkPattern

func (*BenchmarkPattern) GetDrp

func (*BenchmarkPattern) GetHashOfLoadedPattern

func (bp *BenchmarkPattern) GetHashOfLoadedPattern() []byte

func (*BenchmarkPattern) Validate

func (bp *BenchmarkPattern) Validate() error

type DrPlayDataRateConfig

type DrPlayDataRateConfig struct {
	WarmupBeforeDrpMs *float64 `json:",omitempty"`
	Frequency         *int     `json:",omitempty"`
	Scale             *float64 `json:",omitempty"`
	MinRateKbits      *float64 `json:",omitempty"`
}

func NewDrPlayDataRateConfig

func NewDrPlayDataRateConfig(WarmupBeforeDrpMs float64, Frequency int, Scale float64, MinRateKbits float64) DrPlayDataRateConfig

Create a New DrPlayDataRateConfig

func (*DrPlayDataRateConfig) Equals

func (*DrPlayDataRateConfig) String

func (s *DrPlayDataRateConfig) String() string

func (*DrPlayDataRateConfig) Validate

func (bdrp *DrPlayDataRateConfig) Validate() error

Validate membervariables

type DrPlayTrafficControlConfig

type DrPlayTrafficControlConfig struct {
	Markfree            *int32  `json:"Markfree,omitempty"`
	Markfull            *int32  `json:"Markfull,omitempty"`
	Extralatency        *int32  `json:"Extralatency,omitempty"`
	L4sEnablePreMarking *bool   `json:"L4sEnablePreMarking,omitempty"`
	SignalDrpStart      *bool   `json:"SignalDrpStart,omitempty"`
	Queuesizepackets    *uint64 `json:"Queuesizepackets,omitempty"`
}

func NewDrPlayTrafficControlConfig

func NewDrPlayTrafficControlConfig(markfree int32, markfull int32, extralatency int32, enablepremarking bool, signaldrpstart bool) DrPlayTrafficControlConfig

func (*DrPlayTrafficControlConfig) Equals

func (*DrPlayTrafficControlConfig) String

func (s *DrPlayTrafficControlConfig) String() string

func (*DrPlayTrafficControlConfig) Validate

func (tcSet *DrPlayTrafficControlConfig) Validate() error

Validate membervariables

type DrplaySetting

type DrplaySetting struct {
	TC  *DrPlayTrafficControlConfig `json:",omitempty"`
	DRP *DrPlayDataRateConfig       `json:",omitempty"`
}

func NewDrplaySetting

func NewDrplaySetting(freq int, scale float64, minrate float64, warmupMs float64) DrplaySetting

func (*DrplaySetting) Validate

func (bdrp *DrplaySetting) Validate() error

Jump to

Keyboard shortcuts

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