tracker

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2018 License: BSD-3-Clause Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentTracker

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

func (*AgentTracker) Connected

func (at *AgentTracker) Connected()

func (*AgentTracker) Delayed

func (at *AgentTracker) Delayed(d time.Duration)

func (*AgentTracker) Disconnected

func (at *AgentTracker) Disconnected()

func (*AgentTracker) Hash

func (tt *AgentTracker) Hash() string

func (*AgentTracker) TunnelTracker

func (at *AgentTracker) TunnelTracker(hash string) *TunnelTracker

func (*AgentTracker) UID

func (tt *AgentTracker) UID() string

type Tracker

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

Tracker tracks agent status, also tracks tunnel status, connections and traffic.

func New

func New(db *storage.DB) *Tracker

func (*Tracker) AgentTracker

func (t *Tracker) AgentTracker(uid, hash string) *AgentTracker

type TunnelTracker

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

func (*TunnelTracker) AgentHash

func (tt *TunnelTracker) AgentHash() string

func (*TunnelTracker) Closed

func (tt *TunnelTracker) Closed()

func (*TunnelTracker) DecrConn

func (tt *TunnelTracker) DecrConn()

func (*TunnelTracker) Hash

func (tt *TunnelTracker) Hash() string

func (*TunnelTracker) IncrConn

func (tt *TunnelTracker) IncrConn()

func (*TunnelTracker) IsIdle

func (tt *TunnelTracker) IsIdle()

func (*TunnelTracker) IsWorking

func (tt *TunnelTracker) IsWorking()

func (*TunnelTracker) OnError

func (tt *TunnelTracker) OnError(msg string)

func (*TunnelTracker) Opened

func (tt *TunnelTracker) Opened()

func (*TunnelTracker) RecordTraffic

func (tt *TunnelTracker) RecordTraffic(in, out int64)

func (*TunnelTracker) UID

func (tt *TunnelTracker) UID() string

Jump to

Keyboard shortcuts

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