tags

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2018 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilePath

func FilePath(root string, s string, hashOnly bool) string

func Normalize

func Normalize(s string) (string, error)

Types

type Options

type Options struct {
	LocalPath      string
	TagDB          string
	TagDBTimeout   time.Duration
	TagDBChunkSize int
}

type Queue

type Queue struct {
	helper.Stoppable
	// contains filtered or unexported fields
}

func NewQueue

func NewQueue(rootPath string, send func([]string) error, sendChunk int) (*Queue, error)

func (*Queue) Add

func (q *Queue) Add(metric string)

func (*Queue) Lag

func (q *Queue) Lag() time.Duration

func (*Queue) Stop

func (q *Queue) Stop()

type Tags

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

func New

func New(options *Options) *Tags

func (*Tags) Add

func (t *Tags) Add(value string)

func (*Tags) Stat

func (t *Tags) Stat(send helper.StatCallback)

Collect metrics

func (*Tags) Stop

func (t *Tags) Stop()

Jump to

Keyboard shortcuts

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