Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorEvent ¶
type ErrorEvent struct {
Error string `json:"error"`
}
type Event ¶
type Event struct { Type EventType `json:"type"` Payload interface{} `json:"payload"` }
type EventHandler ¶
type EventHandler func(event Event)
type RequestEvent ¶
type TunnelManager ¶
type TunnelManager interface { // NewTunnel creates a new tunnel with an optional ID and returns it NewTunnel(localPort int, customId string) (Tunnel, error) // Tunnels returns all active tunnels Tunnels() []Tunnel // Close cleans up and closes all active tunnels Close() error }
func NewTunnelManager ¶
func NewTunnelManager(cfg *config.ClientConfig, logger *slog.Logger, events EventHandler) TunnelManager
Click to show internal directories.
Click to hide internal directories.