{"modulePath":"github.com/Mathious6/httpkit","version":"v0.0.0-20250723215844-55768b698fa7","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package bandwidth\n\n## Types\n\n```go\ntype BTConn struct {\n\tnet.Conn\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (bt *BTConn) Read(p []byte) (n int, err error)\n```\n\n```go\nfunc (bt *BTConn) Write(p []byte) (n int, err error)\n```\n\n```go\ntype BandwidthTracker interface {\n\tReset()\n\tGetTotalBandwidth() int64\n\tGetWriteBytes() int64\n\tGetReadBytes() int64\n\tTrackConnection(ctx context.Context, conn net.Conn) net.Conn\n}\n```\n\n```go\ntype NopeTracker struct {\n}\n```\n\n```go\nfunc NewNopeTracker() *NopeTracker\n```\n\n```go\nfunc (bt *NopeTracker) GetReadBytes() int64\n```\n\n```go\nfunc (bt *NopeTracker) GetTotalBandwidth() int64\n```\n\n```go\nfunc (bt *NopeTracker) GetWriteBytes() int64\n```\n\n```go\nfunc (bt *NopeTracker) Reset()\n```\n\n```go\nfunc (bt *NopeTracker) TrackConnection(ctx context.Context, conn net.Conn) net.Conn\n```\n\n```go\ntype Tracker struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewTracker() *Tracker\n```\n\n```go\nfunc (bt *Tracker) GetReadBytes() int64\n```\n\n```go\nfunc (bt *Tracker) GetTotalBandwidth() int64\n```\n\n```go\nfunc (bt *Tracker) GetWriteBytes() int64\n```\n\n```go\nfunc (bt *Tracker) Reset()\n```\n\n```go\nfunc (bt *Tracker) TrackConnection(ctx context.Context, conn net.Conn) net.Conn\n```\n\n","path":"github.com/Mathious6/httpkit/bandwidth","name":"bandwidth","synopsis":"","isRedistributable":true}
