metric

package
v0.0.0-...-3f967bb Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: Apache-2.0, BSD-3-Clause, 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