flowhouse

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2021 License: Apache-2.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 ClickhouseConfig

type ClickhouseConfig struct {
	Host     string
	Address  string
	User     string
	Password string
	Database string
}

ClickhouseConfig represents a clickhouse client config

type Config

type Config struct {
	ChCfg         *clickhousegw.ClickhouseConfig
	SNMPCommunity string
	RISTimeout    time.Duration
	ListenSflow   string
	ListenIPFIX   string
	ListenHTTP    string
	DefaultVRF    uint64
	Dicts         frontend.Dicts
}

Config is flow house instances configuration

type Flowhouse

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

Flowhouse is an clickhouse based sflow collector

func New

func New(cfg *Config) (*Flowhouse, error)

New creates a new flowhouse instance

func (*Flowhouse) AddAgent

func (f *Flowhouse) AddAgent(name string, addr bnet.IP, risAddrs []string, vrfs []uint64)

AddAgent adds an agent

func (*Flowhouse) Run

func (f *Flowhouse) Run()

Run runs flowhouse

Jump to

Keyboard shortcuts

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