model

package
v1.0.2-rc.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Daemon

type Daemon interface {
	Start(err *util.AsyncErr) error
	Stop()
}

type Tunnel

type Tunnel interface {
	Transfer(ctx context.Context, send string) (string, error)
	Close() error
	Stats() TunnelStats
	SetListener(l TunnelListener)
}

type TunnelListener

type TunnelListener interface {
	RemoveTunnel(user User, tun Tunnel)
}

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"`
}

type User

type User interface {
	Id() string
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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