measure

package
v0.0.0-...-ae4999c Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Data

type Data struct {
	Name   string                 `json:"name"`
	Tags   map[string]string      `json:"tags"`
	Fields map[string]interface{} `json:"fields"`
	Time   time.Time              `json:"time"`
	// contains filtered or unexported fields
}

func New

func New(name string) *Data

func (*Data) AddField

func (measure *Data) AddField(name string, val interface{}) *Data

func (*Data) AddTag

func (measure *Data) AddTag(name, val string) *Data

func (*Data) Clone

func (measure *Data) Clone() *Data

func (*Data) GetField

func (measure *Data) GetField(name string) (interface{}, bool)

func (*Data) GetTag

func (measure *Data) GetTag(name string) (interface{}, bool)

func (*Data) Release

func (measure *Data) Release()

Jump to

Keyboard shortcuts

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