handle

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdaptHttpHandler

func AdaptHttpHandler(h http.Handler) gin.HandlerFunc

func GetName

func GetName(name string) gin.HandlerFunc

func P_list

func P_list() gin.HandlerFunc

func Some_sec_info

func Some_sec_info() func(*gin.Context)

Types

type ClbMetrics

type ClbMetrics struct {
	ID                string
	Port              string
	Protocol          string // TCP/tcp/HTTP/http
	MetricsName       string
	MontiorNs         string
	PrometheusMetrics prometheus.Gauge
	Client            *monitor.Client
	MonitorGetRequest *monitor.GetMonitorDataRequest
}

func NewClbMetrics

func NewClbMetrics(id, port, protocol, cloudMonitorNs, cloudMonitorMetricsName string) *ClbMetrics

func (*ClbMetrics) GetMetricsVaule

func (cm *ClbMetrics) GetMetricsVaule() (float64, error)

func (*ClbMetrics) SetMetricsValue

func (cm *ClbMetrics) SetMetricsValue()

func (*ClbMetrics) SetMonitorClientAndRequest

func (cm *ClbMetrics) SetMonitorClientAndRequest(id, key string) error

func (*ClbMetrics) WatchMetricsValue

func (cm *ClbMetrics) WatchMetricsValue()

Jump to

Keyboard shortcuts

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