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
Click to show internal directories.
Click to hide internal directories.