metric

package
v1.5.19 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 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