server

package
v0.0.0-...-4d5b332 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 43 Imported by: 0

Documentation

Overview

Code generated by controller generator. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckingKey

func CheckingKey(key string) gin.HandlerFunc

func InitTelemetry

func InitTelemetry(cfg *app.Config) (func(context.Context) error, error)

InitTelemetry sets up OTLP HTTP exporters for traces and metrics, ParentBased sampling to reuse upstream trace decisions, and global propagators for W3C TraceContext + Baggage. It returns a shutdown func.

func OtelGinMiddleware

func OtelGinMiddleware() gin.HandlerFunc

OtelGinMiddleware returns a Gin middleware that instruments requests using the global tracer provider and extracts upstream trace context (traceparent/baggage) automatically.

func PrometheusMiddleware

func PrometheusMiddleware() gin.HandlerFunc

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func (*App) AdminAPIKey

func (app *App) AdminAPIKey(key string) gin.HandlerFunc

func (*App) Endpoint

func (app *App) Endpoint(config *app.Config) func(c *gin.Context)

func (*App) EndpointHandler

func (app *App) EndpointHandler(ctx *gin.Context, hookId string, maxExecutionTime time.Duration, path string)

func (*App) FetchPluginDirect

func (app *App) FetchPluginDirect() gin.HandlerFunc

func (*App) FetchPluginInstallation

func (app *App) FetchPluginInstallation() gin.HandlerFunc

func (*App) InitClusterID

func (app *App) InitClusterID() gin.HandlerFunc

func (*App) RedirectPluginInvoke

func (app *App) RedirectPluginInvoke() gin.HandlerFunc

RedirectPluginInvoke redirects the request to the correct cluster node

func (*App) Run

func (app *App) Run(config *app.Config)

type EndpointHandler

type EndpointHandler func(ctx *gin.Context, hookId string, maxExecutionTime time.Duration, path string)

EndpointHandler is a function type that can be used to handle endpoint requests

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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