network

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 Counter

type Counter struct {
	NetworkName     string `json:"network_name"`
	IncomingPackets int64  `json:"incoming_packets"`
	OutgoingPackets int64  `json:"outgoing_packets"`
	IncomingBytes   int64  `json:"incoming_bytes"`
	OutgoingBytes   int64  `json:"outgoing_bytes"`
}

type Response

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

Jump to

Keyboard shortcuts

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