api

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderRequestID = "X-Request-ID"
	UserIdKey       = "UserId"
	HeaderAuth      = "Authorization"
)
View Source
const (
	MessageSomethingWrong = "something went wrong"
	MessageNotFound       = "not found"
	MessageForbidden      = "forbidden"
	MessageConflict       = "already running"
)
View Source
const (
	HealthCheckPath = "/health-check"
)

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware() gin.HandlerFunc

func CreateServer

func CreateServer(cfg *config.Config, cs *service.CleanupService) (r *gin.Engine, err error)

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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