agent

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Agent

type Agent struct {
	Name   string
	Conn   quic.Connection
	Routes []string
	Tunnel *tunnel.Tunnel
}

func New

func New(name string, conn quic.Connection, routes []string) *Agent

func (*Agent) CloseTunnel

func (a *Agent) CloseTunnel() error

func (*Agent) StartTunnel

func (a *Agent) StartTunnel(ctx context.Context, routes []string) error

type Manager

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

func NewAgentManager

func NewAgentManager() *Manager

func (*Manager) AddAgent

func (cm *Manager) AddAgent(id string, conn *Agent) *Agent

func (*Manager) GetAgent

func (cm *Manager) GetAgent(id string) *Agent

func (*Manager) GetAgents

func (cm *Manager) GetAgents() map[string]*Agent

func (*Manager) RemoveAgent

func (cm *Manager) RemoveAgent(id string)

Jump to

Keyboard shortcuts

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