You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/tstime
Josh Bleecher Snyder 9da4181606 tstime/rate: new package
This is a simplified rate limiter geared for exactly our needs:
A fast, mono.Time-based rate limiter for use in tstun.
It was generated by stripping down the x/time/rate rate limiter
to just our needs and switching it to use mono.Time.

It removes one time.Now call per packet.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
3 years ago
..
mono tstime/mono: new package 3 years ago
rate tstime/rate: new package 3 years ago
jitter.go tstime: add RandomDurationBetween helper 4 years ago
jitter_test.go tstime: add RandomDurationBetween helper 4 years ago
tstime.go tstime: add Parse3339B, for byte slices 4 years ago
tstime_test.go tstime: add Parse3339B, for byte slices 4 years ago