Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tunnel ¶
type Tunnel interface { Transfer(ctx context.Context, send string) (string, error) Close() error Stats() TunnelStats SetListener(l TunnelListener) }
type TunnelListener ¶
type TunnelStats ¶
type TunnelStats struct { Created time.Time `json:"created"` TransferCount int `json:"transfer_count"` DropCount int `json:"drop_count"` ReadCount int `json:"read_count"` PingTxCount int `json:"ping_tx_count"` PongRxCount int `json:"pong_rx_count"` PingRxCount int `json:"ping_rx_count"` PongTxCount int `json:"pong_tx_count"` }
Click to show internal directories.
Click to hide internal directories.