api

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2025 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CORSMiddleware added in v1.3.2

func CORSMiddleware(next http.Handler) http.Handler

CORSMiddleware adds CORS headers and handles OPTIONS requests

func GetHTTPRouter

func GetHTTPRouter(mode string) *gin.Engine

func OptionRequestMiddleware

func OptionRequestMiddleware(c *gin.Context)

func RegisterSwaggerHandler added in v1.3.2

func RegisterSwaggerHandler(ctx context.Context, mux *runtime.ServeMux, swaggerPath, swaggerDir, defaultJsonFile string)

func RequestIDMiddleware

func RequestIDMiddleware(c *gin.Context)

func RequestTimeMiddleware

func RequestTimeMiddleware(c *gin.Context)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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