Documentation ¶
Index ¶
- type Planner
- func (p *Planner) GenerateBitrates() []traffic.Bitrate
- func (p Planner) GenerateRandomBitrates() []traffic.Bitrate
- func (p Planner) GenerateRandomSendSeconds() []traffic.Second
- func (p Planner) GenerateRandomWaitMilliSeconds() []traffic.MilliSecond
- func (p Planner) GenerateSendSeconds() []traffic.Second
- func (p *Planner) GenerateTrafficParams() traffic.Params
- func (p Planner) GenerateWaitMilliSeconds() []traffic.MilliSecond
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Planner ¶
type Planner struct { CycleNum int Seed uint64 SendLambda float64 SendSeconds int64 WaitLambda float64 WaitSeconds int64 Bitrate string BitrateLambda float64 BitrateUnit string }
func NewPlanner ¶
func (*Planner) GenerateBitrates ¶
func (Planner) GenerateRandomBitrates ¶
func (Planner) GenerateRandomSendSeconds ¶
func (Planner) GenerateRandomWaitMilliSeconds ¶
func (p Planner) GenerateRandomWaitMilliSeconds() []traffic.MilliSecond
func (Planner) GenerateSendSeconds ¶
func (*Planner) GenerateTrafficParams ¶
func (Planner) GenerateWaitMilliSeconds ¶
func (p Planner) GenerateWaitMilliSeconds() []traffic.MilliSecond
Click to show internal directories.
Click to hide internal directories.