host

package
v0.0.0-...-ac7c04d Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCollector

func NewCollector() collector.RPCCollector

NewCollector creates a new collector

Types

type IncomingCounter

type IncomingCounter struct {
	Host            string `json:"host"`
	IncomingPackets int64  `json:"incoming_packets"`
	IncomingBytes   int64  `json:"incoming_bytes"`
	IncomingFlows   int64  `json:"incoming_flows"`
}

type IncomingResponse

type IncomingResponse struct {
	Success   bool              `json:"success"`
	ErrorText string            `json:"error_text,omitempty"`
	Values    []IncomingCounter `json:"values,omitempty"`
}

type OutgoingCounter

type OutgoingCounter struct {
	Host            string `json:"host"`
	OutgoingPackets int64  `json:"outgoing_packets"`
	OutgoingBytes   int64  `json:"outgoing_bytes"`
	OutgoingFlows   int64  `json:"outgoing_flows"`
}

type OutgoingResponse

type OutgoingResponse struct {
	Success   bool              `json:"success"`
	ErrorText string            `json:"error_text,omitempty"`
	Values    []OutgoingCounter `json:"values,omitempty"`
}

Jump to

Keyboard shortcuts

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