helper

package
v0.0.0-...-f0721d9 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2019 License: GPL-3.0 Imports: 2 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendAndSubstractUint32

func SendAndSubstractUint32(metric string, v *uint32, send StatCallback)

func SendAndSubstractUint64

func SendAndSubstractUint64(metric string, v *uint64, send StatCallback)

func SendAndZeroIfNotUpdatedUint32

func SendAndZeroIfNotUpdatedUint32(metric string, v *uint32, send StatCallback)

func SendUint32

func SendUint32(metric string, v *uint32, send StatCallback)

func SendUint64

func SendUint64(metric string, v *uint64, send StatCallback)

Types

type StatCallback

type StatCallback func(metric string, value float64)

type Stoppable

type Stoppable struct {
	sync.RWMutex

	Go       func(callable func(exit chan bool))
	WithExit func(callable func(exit chan bool))
	// contains filtered or unexported fields
}

Stoppable is abstract class with Start/Stop methods

func (*Stoppable) Start

func (s *Stoppable) Start()

Start ...

func (*Stoppable) StartFunc

func (s *Stoppable) StartFunc(startProcedure func() error) error

StartFunc ...

func (*Stoppable) Stop

func (s *Stoppable) Stop()

Stop ...

func (*Stoppable) StopFunc

func (s *Stoppable) StopFunc(callable func())

StopFunc ...

type StoppableInterface

type StoppableInterface interface {
}

Directories

Path Synopsis
Package framing provides a prefix length framed net.Conn connection.
Package framing provides a prefix length framed net.Conn connection.

Jump to

Keyboard shortcuts

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