stats

package
v0.0.0-...-8fb32ab Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler represents all information stored by the application

func New

func New() *Handler

New creates a new stats object

func (*Handler) GetAll

func (ud *Handler) GetAll() map[string]string

GetAll provides a map of stat name and value It additionally returns current uptime

func (*Handler) Increment

func (ud *Handler) Increment(flag string)

Increment keeps track of the number of occurrences per flag

type Interface

type Interface interface {
	GetAll() map[string]string
	Increment(string)
}

Interface is the stats public functions

Jump to

Keyboard shortcuts

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