vegas

package
v0.0.0-...-41c389d Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stat

type Stat struct {
	Limit    int64
	InFlight int64
	MinRTT   time.Duration
	LastRTT  time.Duration
}

Stat is the Statistics of vegas.

type Vegas

type Vegas struct {
	// contains filtered or unexported fields
}

Vegas tcp vegas.

func New

func New() *Vegas

New new a rate vegas.

func (*Vegas) Acquire

func (v *Vegas) Acquire() (done func(time.Time, rate.Op), success bool)

Acquire No matter success or not,done() must be called at last.

func (*Vegas) Stat

func (v *Vegas) Stat() Stat

Stat return the statistics of vegas.

Jump to

Keyboard shortcuts

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