http

package
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const Name = "HTTP"

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectConn

type ConnectConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func (*ConnectConn) Epoch

func (c *ConnectConn) Epoch() time.Time

func (*ConnectConn) Metadata

func (c *ConnectConn) Metadata() *tunnel.Metadata

func (*ConnectConn) Name

func (c *ConnectConn) Name() string

func (*ConnectConn) Read

func (c *ConnectConn) Read(p []byte) (int, error)

func (*ConnectConn) Recv

func (c *ConnectConn) Recv() uint64

func (*ConnectConn) Sent

func (c *ConnectConn) Sent() uint64

func (*ConnectConn) Tunnels

func (c *ConnectConn) Tunnels() *tunnel.Tunnels

func (*ConnectConn) User

func (c *ConnectConn) User() statistic.User

func (*ConnectConn) Write

func (c *ConnectConn) Write(p []byte) (int, error)

type OtherConn

type OtherConn struct {
	net.Conn
	// contains filtered or unexported fields
}

func (*OtherConn) Close

func (c *OtherConn) Close() error

func (*OtherConn) Epoch

func (c *OtherConn) Epoch() time.Time

func (*OtherConn) Metadata

func (c *OtherConn) Metadata() *tunnel.Metadata

func (*OtherConn) Name

func (c *OtherConn) Name() string

func (*OtherConn) Read

func (c *OtherConn) Read(p []byte) (int, error)

func (*OtherConn) Recv

func (c *OtherConn) Recv() uint64

func (*OtherConn) Sent

func (c *OtherConn) Sent() uint64

func (*OtherConn) Tunnels

func (c *OtherConn) Tunnels() *tunnel.Tunnels

func (*OtherConn) User

func (c *OtherConn) User() statistic.User

func (*OtherConn) Write

func (c *OtherConn) Write(p []byte) (int, error)

type Server

type Server struct {
	// contains filtered or unexported fields
}

func NewServer

func NewServer(ctx context.Context, underlay tunnel.Server) (*Server, error)

func (*Server) AcceptConn

func (s *Server) AcceptConn(tunnel.Tunnel) (tunnel.Conn, error)

func (*Server) AcceptPacket

func (s *Server) AcceptPacket(tunnel.Tunnel) (tunnel.PacketConn, error)

func (*Server) Close

func (s *Server) Close() error

type Tunnel

type Tunnel struct{}

func (*Tunnel) Name

func (t *Tunnel) Name() string

func (*Tunnel) NewClient

func (t *Tunnel) NewClient(ctx context.Context, client tunnel.Client) (tunnel.Client, error)

func (*Tunnel) NewServer

func (t *Tunnel) NewServer(ctx context.Context, server tunnel.Server) (tunnel.Server, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL