totalTraffic

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 {
	CounterName string `json:"counter_name"`
	Value       int64  `json:"value"`
	Unit        string `json:"unit"`
}

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