agent

package
Version: v1.0.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	AgentName = "agent"
	CYCLE     = 30 * time.Second
)

Variables

This section is empty.

Functions

func New

func New(cfg Config, log logger.Log) *agent

Types

type Agent

type Agent interface {
	Run()
	Stop()
}

type Config

type Config struct {
	Rc      int    // push retries
	Port    int    // listen port
	Proxy   string // proxy address
	Address string // agent address
}

type Server

type Server interface {
	Run()
	Stop()
	RecvChannel() <-chan net.Conn
}

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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