Documentation ¶
Index ¶
- Variables
- func StreamGunWithConn(conn net.Conn, tlsConfig *tls.Config, cfg *Config, ...) (net.Conn, error)
- func StreamGunWithTransport(transport *TransportWrap, cfg *Config) (net.Conn, error)
- func UVarintLen(x uint64) int
- type Config
- type Conn
- func (g *Conn) Close() error
- func (g *Conn) FrontHeadroom() int
- func (g *Conn) LocalAddr() net.Addr
- func (g *Conn) Read(b []byte) (n int, err error)
- func (g *Conn) RemoteAddr() net.Addr
- func (g *Conn) SetDeadline(t time.Time) error
- func (g *Conn) SetReadDeadline(t time.Time) error
- func (g *Conn) SetWriteDeadline(t time.Time) error
- func (g *Conn) Write(b []byte) (n int, err error)
- func (g *Conn) WriteBuffer(buffer *buf.Buffer) error
- type DialFn
- type TransportWrap
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLength = errors.New("invalid length") ErrSmallBuffer = errors.New("buffer too small") )
Functions ¶
func StreamGunWithConn ¶
func StreamGunWithTransport ¶
func StreamGunWithTransport(transport *TransportWrap, cfg *Config) (net.Conn, error)
func UVarintLen ¶
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) FrontHeadroom ¶
func (*Conn) RemoteAddr ¶
type TransportWrap ¶
func NewHTTP2Client ¶
func NewHTTP2Client(dialFn DialFn, tlsConfig *tls.Config, Fingerprint string, realityConfig *tlsC.RealityConfig) *TransportWrap
func (*TransportWrap) LocalAddr ¶
func (tw *TransportWrap) LocalAddr() net.Addr
func (*TransportWrap) RemoteAddr ¶
func (tw *TransportWrap) RemoteAddr() net.Addr
Click to show internal directories.
Click to hide internal directories.