models

package
v0.4.10 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Server    string          `json:"server,omitempty"`
	DstPort   int             `json:"dst_port,omitempty"`
	SrcRange  string          `json:"src_range,omitempty"`
	DstRange  string          `json:"dst_range,omitempty"`
	Workers   int             `json:"workers,omitempty"`
	Delay     int             `json:"delay,omitempty"`
	WebIP     string          `json:"web_ip,omitempty"`
	WebPort   int             `json:"web_port,omitempty"`
	Web       bool            `json:"web,omitempty"`
	WaitGroup sync.WaitGroup  `json:"wait_group"`
	Context   context.Context `json:"context,omitempty"`
}

type DashboardPage added in v0.3.1

type DashboardPage struct {
	Title       string             `json:"title,omitempty"`
	Comment     string             `json:"comment,omitempty"`
	HealthOut   Health             `json:"health_out"`
	ConfigOut   *Config            `json:"config_out"`
	StatsMapOut map[int]WorkerStat `json:"stats_map_out"`
	StatsTotal  StatTotals         `json:"stats_total"`
}

type Health

type Health struct {
	Status  string `json:"status,omitempty"`
	Message string `json:"message,omitempty"`
}

type RecordStat added in v0.4.0

type RecordStat struct {
	ValidCount   uint64
	InvalidCount uint64
}

type StatTotals added in v0.3.1

type StatTotals struct {
	FlowsSent uint64
	Cycles    uint64
	BytesSent uint64
}

type WorkerStat

type WorkerStat struct {
	WorkerID  int    `json:"worker_id,omitempty"`
	SourceID  int    `json:"source_id,omitempty"`
	FlowsSent uint64 `json:"flows_sent,omitempty"`
	Cycles    uint64 `json:"cycles,omitempty"`
	BytesSent uint64 `json:"bytes_sent,omitempty"`
}

type WorkerStats

type WorkerStats []WorkerStat

Jump to

Keyboard shortcuts

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