Documentation
¶
Index ¶
- Constants
- func NewRoundTrip(serverAddr string, helloID utls.ClientHelloID, timeout time.Duration, ...) *roundTrip
- type LocalConn
- func (l *LocalConn) Close() error
- func (l *LocalConn) LocalAddr() net.Addr
- func (l *LocalConn) Read(b []byte) (n int, err error)
- func (l *LocalConn) RemoteAddr() net.Addr
- func (l *LocalConn) SetDeadline(t time.Time) error
- func (l *LocalConn) SetReadDeadline(t time.Time) error
- func (l *LocalConn) SetWriteDeadline(t time.Time) error
- func (l *LocalConn) Write(b []byte) (n int, err error)
- type Server
- type ServerConn
- func (c *ServerConn) Close() error
- func (c *ServerConn) LocalAddr() net.Addr
- func (c *ServerConn) Read(b []byte) (n int, err error)
- func (c *ServerConn) ReadLocal(b []byte) (n int, err error)
- func (c *ServerConn) RemoteAddr() net.Addr
- func (c *ServerConn) SetDeadline(t time.Time) error
- func (c *ServerConn) SetReadDeadline(t time.Time) error
- func (c *ServerConn) SetWriteDeadline(t time.Time) error
- func (c *ServerConn) Write(b []byte) (n int, err error)
- func (c *ServerConn) WriteLocal(b []byte) (n int, err error)
Constants ¶
View Source
const RelayBufferSize = cipherstream.MaxCipherRelaySize
View Source
const RequestIDHeader = "X-Request-UID"
Variables ¶
This section is empty.
Functions ¶
func NewRoundTrip ¶
Types ¶
type LocalConn ¶
func (*LocalConn) RemoteAddr ¶
func (*LocalConn) SetDeadline ¶
SetDeadline if the deadline time fired, then the LocalConn can't be used anymore
type ServerConn ¶
type ServerConn struct {
// contains filtered or unexported fields
}
func NewServerConn ¶
func NewServerConn(reqID string, closeHook func(reqID string)) *ServerConn
func (*ServerConn) Close ¶
func (c *ServerConn) Close() error
func (*ServerConn) LocalAddr ¶
func (c *ServerConn) LocalAddr() net.Addr
func (*ServerConn) RemoteAddr ¶
func (c *ServerConn) RemoteAddr() net.Addr
func (*ServerConn) SetDeadline ¶
func (c *ServerConn) SetDeadline(t time.Time) error
func (*ServerConn) SetReadDeadline ¶
func (c *ServerConn) SetReadDeadline(t time.Time) error
func (*ServerConn) SetWriteDeadline ¶
func (c *ServerConn) SetWriteDeadline(t time.Time) error
func (*ServerConn) WriteLocal ¶
func (c *ServerConn) WriteLocal(b []byte) (n int, err error)
Click to show internal directories.
Click to hide internal directories.