api

package
v0.0.18 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	HeaderRequestID = "X-Request-ID"
	UserIdKey       = "UserId"
)
View Source
const (
	HealthCheckPath = "/health-check"
	FlowIdPath      = "/flow/:id"
	FlowInputsPath  = "/flow/getinputs/:id"
)
View Source
const (
	MessageSomethingWrong = "something went wrong"
)

Variables

This section is empty.

Functions

func AuthMiddleware

func AuthMiddleware() gin.HandlerFunc

func CreateServer

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

CreateServer creates an API server with the given configuration. It sets up the necessary middleware and routes. @title Analytics-Parser API @version 0.0.18 @description For the parsing of analytics flows. @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