Documentation ¶
Index ¶
- type Agent
- func (agent *Agent) DeleteListener(alias string) error
- func (agent *Agent) Hash() string
- func (agent *Agent) NewListener(network string, listener_addr string, redirect_addr string) (listeners.Listener, error)
- func (agent *Agent) Proto() *pb.Agent
- func (agent *Agent) RestoreListener(listenerId int32, network string, listener_addr string, redirect_addr string) (listeners.Listener, error)
- func (agent *Agent) String() string
- type Agents
- func (agents *Agents) Create(config *config.Config, session *yamux.Session) (*Agent, error)
- func (agents *Agents) DeleteListener(agentAlias string, listenerAlias string) error
- func (agents *Agents) Destroy(alias string)
- func (agents *Agents) Len() int
- func (agents *Agents) List() map[string]*Agent
- func (agents *Agents) NewListener(alias string, network string, from string, to string) error
- func (agents *Agents) Rename(oldAlias, newAlias string) error
- func (agents *Agents) RestoreRelay(alias string, tuns *tuns.Tuns) error
- func (agents *Agents) StartRelay(alias string, tun *tuns.Tun) error
- func (agents *Agents) StopRelay(alias string) error
- func (agents *Agents) WaitForConnections(config *config.Config, proxyController *proxy.Controller, tuns *tuns.Tuns)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct { Alias string Name string Hostname string Network []protocol.NetInterface Tun *tuns.Tun Session *yamux.Session CloseChan chan bool Listeners *listeners.Listeners // contains filtered or unexported fields }
func (*Agent) DeleteListener ¶
func (*Agent) NewListener ¶
func (*Agent) RestoreListener ¶
type Agents ¶
func (*Agents) DeleteListener ¶
func (*Agents) NewListener ¶
func (*Agents) RestoreRelay ¶
func (*Agents) WaitForConnections ¶
Click to show internal directories.
Click to hide internal directories.