tags

package
v0.14.1-0...-915d78e Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2020 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
	TagDBUpdateInterval uint64
}

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, now bool)

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