Documentation
¶
Index ¶
Constants ¶
View Source
const IdleTimeout = 10 * time.Second
Variables ¶
View Source
var Heartbeat = []byte("heartbeat")
Functions ¶
This section is empty.
Types ¶
type RateLimiter ¶
type RateLimiter struct {
// contains filtered or unexported fields
}
func NewRateLimiter ¶
func NewRateLimiter(limit int, seconds int) RateLimiter
func (*RateLimiter) CanGo ¶
func (rl *RateLimiter) CanGo(key string) bool
type RateLimiterRecord ¶
type RateLimiterRecord struct {
// contains filtered or unexported fields
}
type Throttle ¶
type Throttle struct {
// contains filtered or unexported fields
}
func NewThrottle ¶
type Tunnel ¶
type Tunnel struct {
// contains filtered or unexported fields
}
func DialTimeout ¶
func (*Tunnel) ReadMessage ¶
func (*Tunnel) SetThrottle ¶
func (*Tunnel) WriteMessage ¶
Click to show internal directories.
Click to hide internal directories.