opmon

package
Version: v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

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

Operation is the type of operation to be monitored

func StartOperation

func StartOperation(operationName string) *Operation

StartOperation creates a new operation

func (*Operation) Finish

func (op *Operation) Finish(warnThreshold time.Duration)

Finish finishes the operation and records the duration of operation

Source Files

Jump to

Keyboard shortcuts

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