modulepackage
0.0.0-20200303040944-fe53f13203e9
Repository: https://github.com/getlantern/lampshade.git
Documentation: pkg.go.dev
# Functions
NewBufferPool constructs a BufferPool with the given maximum size in bytes.
NewDialer wraps the given dial function with support for lampshade.
WrapListener wraps the given listener with support for multiplexing.
# Constants
AES128GCM is 128-bit AES in GCM mode.
ChaCha20Poly1305 is 256-bit ChaCha20Poly1305 with a 96-bit Nonce.
MaxDataLen is the maximum length of data in a lampshade frame.
NoEncryption is no encryption.
# Variables
ErrConnectionClosed indicates that an i/o operation was attempted on a closed stream.
ErrListenerClosed indicates that an Accept was attempted on a closed listener.
ErrTimeout indicates that an i/o operation timed out.
No description provided by the author
# Structs
DialerOpts configures options for creating Dialers.
ListenerOpts provides options for configuring a Listener.
# Interfaces
BoundDialer is a Dialer bound to a specific DialFN for connecting to the lampshade server.
BufferPool is a pool of reusable buffers.
Dialer provides an interface for opening new lampshade connections.
Session is a wrapper around a net.Conn that supports multiplexing.
StatsTracking is an interface for anything that tracks stats.
Stream is a net.Conn that also exposes access to the underlying Session.