forward

package
v1.21.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PairConnections

func PairConnections(ctx context.Context, username string, incoming, outgoing io.ReadWriteCloser) error

Types

type BWLimit

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

func NewBWLimit

func NewBWLimit(bytesPerSecond float64, buckets uint, separate bool) *BWLimit

func (*BWLimit) PairConnections

func (l *BWLimit) PairConnections(ctx context.Context, username string, incoming, outgoing io.ReadWriteCloser) error

Jump to

Keyboard shortcuts

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