stat

package
v0.0.0-...-e8c1540 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2018 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	URI_TEMPLATE   = "tcp://%s:%d?debug=False"
	CHECKOUT_TIME  = 15
	INSERT_REQUEST = `` /* 390-byte string literal not displayed */

	SELECT_REQUEST = `` /* 289-byte string literal not displayed */

	SELECT_ERRORS_REQUEST = `` /* 206-byte string literal not displayed */

)

Variables

This section is empty.

Functions

This section is empty.

Types

type Errors

type Errors struct {
	Error   string `db:"error"`
	Service string `db:"service"`
	Count   int    `db:"count"`
}

type StatDB

type StatDB struct {
	DB *sqlx.DB
	// contains filtered or unexported fields
}

func InitStat

func InitStat() (s *StatDB)

func (*StatDB) Insert

func (s *StatDB) Insert(statMessage structs.StatMessage) (err error)

func (*StatDB) SelectDailyErrors

func (s *StatDB) SelectDailyErrors() (result [][]string, err error)

func (*StatDB) StandartStatSelect

func (s *StatDB) StandartStatSelect() (result map[string]map[string]interface{}, err error)

TODO Refactoring Very Ugly

Jump to

Keyboard shortcuts

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