metric

package
v1.5.37 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HttpRequestController    *controllers.HttpRequestController
	ElectionStatusController *controllers.ElectionStatusController
	MySQLOperationController *controllers.MySQLOperationController
	ResourceStatusController *controllers.ResourceStatusController

	CheckFailController       *selfController.CheckFailController
	TaskNumController         *selfController.TaskNumController
	TaskTimeController        *selfController.TaskTimeController
	TaskRunningTimeController *selfController.TaskRunningTimeController
)

Functions

func TimeMetricRecord

func TimeMetricRecord(operation string) func()

TimeMetricRecord as a decorator for functions, records the function execution time.

func f() {
    TimeMetricRecord("operation")()

    // Do function work
}

Types

type HttpRequestLabel

type HttpRequestLabel = controllers.HttpRequestLabel

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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