Documentation ¶
Index ¶
- Constants
- type Client
- type Config
- type InboundConn
- type OutboundConn
- func (c *OutboundConn) Epoch() time.Time
- func (c *OutboundConn) Metadata() *tunnel.Metadata
- func (c *OutboundConn) Name() string
- func (c *OutboundConn) Recv() uint64
- func (c *OutboundConn) RemoteAddr() net.Addr
- func (c *OutboundConn) Sent() uint64
- func (c *OutboundConn) Tunnels() *tunnel.Tunnels
- func (c *OutboundConn) User() statistic.User
- type Server
- type Tunnel
- type WebsocketConfig
Constants ¶
View Source
const Name = "WEBSOCKET"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DialPacket ¶
type Config ¶
type Config struct { RemoteHost string `json:"remote_addr" yaml:"remote-addr"` RemotePort int `json:"remote_port" yaml:"remote-port"` Websocket WebsocketConfig `json:"websocket" yaml:"websocket"` }
type InboundConn ¶
type InboundConn struct { OutboundConn // contains filtered or unexported fields }
func (*InboundConn) Close ¶
func (c *InboundConn) Close() error
func (*InboundConn) Epoch ¶
func (c *InboundConn) Epoch() time.Time
func (*InboundConn) Recv ¶
func (c *InboundConn) Recv() uint64
func (*InboundConn) Sent ¶
func (c *InboundConn) Sent() uint64
type OutboundConn ¶
func (*OutboundConn) Epoch ¶
func (c *OutboundConn) Epoch() time.Time
func (*OutboundConn) Metadata ¶
func (c *OutboundConn) Metadata() *tunnel.Metadata
func (*OutboundConn) Name ¶
func (c *OutboundConn) Name() string
func (*OutboundConn) Recv ¶
func (c *OutboundConn) Recv() uint64
func (*OutboundConn) RemoteAddr ¶
func (c *OutboundConn) RemoteAddr() net.Addr
func (*OutboundConn) Sent ¶
func (c *OutboundConn) Sent() uint64
func (*OutboundConn) Tunnels ¶
func (c *OutboundConn) Tunnels() *tunnel.Tunnels
func (*OutboundConn) User ¶
func (c *OutboundConn) User() statistic.User
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) AcceptPacket ¶
type WebsocketConfig ¶
Click to show internal directories.
Click to hide internal directories.