interrupt

package
v1.10.0-alpha.21 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: GPL-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextWithIsExternalConnection

func ContextWithIsExternalConnection(ctx context.Context) context.Context

func IsExternalConnectionFromContext

func IsExternalConnectionFromContext(ctx context.Context) bool

Types

type Conn

type Conn struct {
	net.Conn
	// contains filtered or unexported fields
}

func (*Conn) Close

func (c *Conn) Close() error

func (*Conn) ReaderReplaceable

func (c *Conn) ReaderReplaceable() bool

func (*Conn) Upstream

func (c *Conn) Upstream() any

func (*Conn) WriterReplaceable

func (c *Conn) WriterReplaceable() bool

type Group

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

func NewGroup

func NewGroup() *Group

func (*Group) Interrupt

func (g *Group) Interrupt(interruptExternalConnections bool)

func (*Group) NewConn

func (g *Group) NewConn(conn net.Conn, isExternal bool) net.Conn

func (*Group) NewPacketConn

func (g *Group) NewPacketConn(conn net.PacketConn, isExternal bool) net.PacketConn

type PacketConn

type PacketConn struct {
	net.PacketConn
	// contains filtered or unexported fields
}

func (*PacketConn) Close

func (c *PacketConn) Close() error

func (*PacketConn) ReaderReplaceable

func (c *PacketConn) ReaderReplaceable() bool

func (*PacketConn) Upstream

func (c *PacketConn) Upstream() any

func (*PacketConn) WriterReplaceable

func (c *PacketConn) WriterReplaceable() bool

Jump to

Keyboard shortcuts

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