insight

package
v0.0.0-...-28496c0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2018 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(s Server) func(w http.ResponseWriter, r *http.Request)

Handler for monitoring actions

Types

type Request

type Request struct {
	Type string `json:"type"`
	App  string `json:"app"`
}

Request defines a default request

type Server

type Server struct {
	Log     *zap.Logger
	Counter metrics.Counter
	Db      *bolt.DB
}

Server stores counters

func (Server) Count

func (s Server) Count(ctype, app string) error

Count increments the db and prom counter

Jump to

Keyboard shortcuts

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