queue

package
v0.0.0-...-46a5f05 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Overview

Queue metrics for 5min so we send less data to the DB and lower load/change of racing conditions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Flush

func Flush() map[string]Stat

Empty queue and return anything in it.

func Queue

func Queue(user string, in uint32, out uint32, inPack uint32, outPack uint32)

Add to queue

Types

type Stat

type Stat struct {
	InOctet   uint32
	OutOctet  uint32
	InPacket  uint32
	OutPacket uint32
}

Jump to

Keyboard shortcuts

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