Documentation
¶
Index ¶
- type BpfConn
- func (bc *BpfConn) Close() error
- func (bc *BpfConn) LocalAddr() net.Addr
- func (bc *BpfConn) Read(b []byte) (n int, err error)
- func (bc *BpfConn) RemoteAddr() net.Addr
- func (bc *BpfConn) SetDeadline(t time.Time) error
- func (bc *BpfConn) SetReadDeadline(t time.Time) error
- func (bc *BpfConn) SetWriteDeadline(t time.Time) error
- func (bc *BpfConn) Write(b []byte) (n int, err error)
- type BpfCount
- func (bc *BpfCount) Attach(conn net.Conn, id uuid.UUID, addr string) (net.Conn, error)
- func (bc *BpfCount) Close() error
- func (bc *BpfCount) DeleteExecLimit(id uuid.UUID) error
- func (bc *BpfCount) DeleteLimit(addr netutil.IPv6, id uuid.UUID) error
- func (bc *BpfCount) Detach(addr string, id uuid.UUID, ipv6 netutil.IPv6) error
- func (bc *BpfCount) SetExecLimit(id uuid.UUID, limit app.Bitrate) error
- func (bc *BpfCount) SetLimit(addr string, id uuid.UUID, limit app.Bitrate) error
- func (f *BpfCount) Type() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BpfConn ¶
type BpfConn struct {
// contains filtered or unexported fields
}
func (*BpfConn) RemoteAddr ¶
type BpfCount ¶
type BpfCount struct {
// contains filtered or unexported fields
}
BpfCount employs ratelimiting using an EBPF layer. It requires root priviliges to work.
func (*BpfCount) DeleteLimit ¶
func (*BpfCount) SetExecLimit ¶
Click to show internal directories.
Click to hide internal directories.