http

package
v0.0.0-...-34e0b2d Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MetricsPath        = "/metrics"
	MetricsDefaultPath = "/metrics_default"
)

Prometheus restful api path

View Source
const (
	RouteTriggerStopPath     = "/management/stop"
	RouteCheckComponentReady = "/management/check/ready"
)

for every component, register it's own api to trigger stop and check ready

View Source
const (
	RouteGcPause  = "/management/datacoord/garbage_collection/pause"
	RouteGcResume = "/management/datacoord/garbage_collection/resume"

	RouteSuspendQueryCoordBalance = "/management/querycoord/balance/suspend"
	RouteResumeQueryCoordBalance  = "/management/querycoord/balance/resume"
	RouteTransferSegment          = "/management/querycoord/transfer/segment"
	RouteTransferChannel          = "/management/querycoord/transfer/channel"

	RouteSuspendQueryNode           = "/management/querycoord/node/suspend"
	RouteResumeQueryNode            = "/management/querycoord/node/resume"
	RouteListQueryNode              = "/management/querycoord/node/list"
	RouteGetQueryNodeDistribution   = "/management/querycoord/distribution/get"
	RouteCheckQueryNodeDistribution = "/management/querycoord/distribution/check"
)

proxy management restful api root path

View Source
const (
	DefaultListenPort = "9091"
	ListenPortEnvKey  = "METRICS_PORT"
)
View Source
const EventLogRouterPath = "/eventlog"

EventLogRouterPath is path for eventlog control.

View Source
const ExprPath = "/expr"

ExprPath is path for expression.

View Source
const HealthzRouterPath = "/healthz"

HealthzRouterPath is default path for check health state.

View Source
const LogLevelRouterPath = "/log/level"

LogLevelRouterPath is path for Get and Update log level at runtime.

View Source
const RootPath = "/"

Variables

This section is empty.

Functions

func Register

func Register(h *Handler)

func RegisterCheckComponentReady

func RegisterCheckComponentReady(checkActive func(role string) error)

func RegisterStopComponent

func RegisterStopComponent(triggerComponentStop func(role string) error)

func ServeHTTP

func ServeHTTP()

Types

type Handler

type Handler struct {
	Path        string
	HandlerFunc http.HandlerFunc
	Handler     http.Handler
}

type Request

type Request = http.Request

type ResponseWriter

type ResponseWriter = http.ResponseWriter

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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