Documentation ¶
Index ¶
- Variables
- func NewHTTP2Client(dialFn DialFn, tlsConfig *tls.Config) *http2.Transport
- func StreamGunWithConn(conn net.Conn, tlsConfig *tls.Config, cfg *Config) (net.Conn, error)
- func StreamGunWithTransport(transport *http2.Transport, cfg *Config) (net.Conn, error)
- type Config
- type Conn
- func (g *Conn) Close() error
- 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)
- 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 ¶
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) RemoteAddr ¶
type TransportWrap ¶ added in v0.0.2
func (*TransportWrap) LocalAddr ¶ added in v0.0.2
func (tw *TransportWrap) LocalAddr() net.Addr
func (*TransportWrap) RemoteAddr ¶ added in v0.0.2
func (tw *TransportWrap) RemoteAddr() net.Addr
Click to show internal directories.
Click to hide internal directories.