stats

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SimpleStatsModule added in v0.9.0

type SimpleStatsModule struct {
}

func (SimpleStatsModule) Name added in v0.9.0

func (module SimpleStatsModule) Name() string

func (SimpleStatsModule) Start added in v0.9.0

func (module SimpleStatsModule) Start(cfg *Config)

func (SimpleStatsModule) Stop added in v0.9.0

func (module SimpleStatsModule) Stop() error

type Stats added in v0.9.0

type Stats struct {
	ID   string                       `storm:"id,unique" json:"id" gorm:"not null;unique;primary_key"`
	Data *map[string]map[string]int64 `storm:"inline" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*Stats) Decrement added in v0.9.0

func (s *Stats) Decrement(category, key string)

func (*Stats) DecrementBy added in v0.9.0

func (s *Stats) DecrementBy(category, key string, value int64)

func (*Stats) Gauge added in v0.9.0

func (s *Stats) Gauge(category, key string, v int64)

func (*Stats) Increment added in v0.9.0

func (s *Stats) Increment(category, key string)

func (*Stats) IncrementBy added in v0.9.0

func (s *Stats) IncrementBy(category, key string, value int64)

func (*Stats) Stat added in v0.9.0

func (s *Stats) Stat(category, key string) int64

func (*Stats) StatsAll added in v0.9.0

func (s *Stats) StatsAll() *[]byte

func (*Stats) Timing added in v0.9.0

func (s *Stats) Timing(category, key string, v int64)

Jump to

Keyboard shortcuts

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