Documentation ¶
Index ¶
- Constants
- type ASLConn
- func (c ASLConn) Close() error
- func (c ASLConn) LocalAddr() net.Addr
- func (c ASLConn) Read(b []byte) (n int, err error)
- func (c ASLConn) RemoteAddr() net.Addr
- func (c ASLConn) SetDeadline(t time.Time) error
- func (c ASLConn) SetReadDeadline(t time.Time) error
- func (c ASLConn) SetWriteDeadline(t time.Time) error
- func (c ASLConn) Write(b []byte) (n int, err error)
- type ASLListener
- type ASLServer
Constants ¶
View Source
const TLSStateKey contextKey = "tlsState"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ASLConn ¶
type ASLConn struct { TLSState *tls.ConnectionState // contains filtered or unexported fields }
ASLConn wraps the TCPConn and ASLSession
func (ASLConn) RemoteAddr ¶
type ASLListener ¶
type ASLListener struct {
// contains filtered or unexported fields
}
ASLListener wraps a net.TCPListener and handles ASL sessions
func (ASLListener) Accept ¶
func (l ASLListener) Accept() (net.Conn, error)
Accept accepts a new connection and wraps it with ASLSession
func (ASLListener) Addr ¶
func (l ASLListener) Addr() net.Addr
Addr returns the listener's network address
type ASLServer ¶
type ASLServer struct { *http.Server ASLTLSEndpoint *asl.ASLEndpoint // Custom ASL Endpoint configuration }
ASLServer struct that embeds http.Server and uses custom ASL TLS listener
func NewASLServer ¶
Constructor for ASLServer
func (*ASLServer) ListenAndServeASLTLS ¶
Click to show internal directories.
Click to hide internal directories.