api

package
v0.0.37 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2026 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderRequestID = "X-Request-ID"
	UserIdKey       = "UserId"
	AdminKey        = "admin"
)
View Source
const (
	MessageSomethingWrong = "something went wrong"
	MessageParseError     = "failed to parse request"
)
View Source
const (
	HealthCheckPath = "/health-check"
)

Variables

This section is empty.

Functions

func AdminMiddleware

func AdminMiddleware() gin.HandlerFunc

func AuthMiddleware

func AuthMiddleware() gin.HandlerFunc

func CreateServer

func CreateServer(cfg *config.Config,
	driver *service.Driver,
	pipeline *service.PipelineApiService,
	imp *service.ImportDeployService,
	permV2 *permV2Client.Client,
	influx *service.Influx) (r *gin.Engine, err error)

CreateServer godoc @title Analytics Serving Service API @version {version} @description For the administration of analytics exports. @license.name Apache-2.0 @license.url http://www.apache.org/licenses/LICENSE-2.0.html @BasePath /

func ValidateInputs

func ValidateInputs(dataSet interface{}) (bool, map[string][]string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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