tcpcollect

package
v0.0.0-...-83adff0 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientStatus

type ClientStatus struct {
	Addr         string
	Counter      counter.Counter
	ErrorCounter counter.Counter
	UpTime       int64
}

ClientStatus agent client status

func (*ClientStatus) ClientHost

func (c *ClientStatus) ClientHost() string

ClientHost extract from client addr

type TCPCollect

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

TCPCollect tcp server.

func New

func New(cfg *conf.Collect) *TCPCollect

New tcp server.

func (*TCPCollect) ClientStatus

func (s *TCPCollect) ClientStatus() []*ClientStatus

ClientStatus ClientStatus

func (*TCPCollect) Close

func (s *TCPCollect) Close() error

Close tcp server.

func (*TCPCollect) RegisterProcess

func (s *TCPCollect) RegisterProcess(p process.Processer)

RegisterProcess implement process.Processer

func (*TCPCollect) Start

func (s *TCPCollect) Start() error

Start tcp server.

Jump to

Keyboard shortcuts

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