multiservicesapi

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ServiceAllowDirectHandle is the header key to allow direct handle.
	ServiceAllowDirectHandle = "service-allow-direct-handle"
	// ServiceRedirectorHeader is the header key to indicate the request is redirected.
	ServiceRedirectorHeader = "service-redirector"
	// ServiceContextKey is the key to get service server from gin.Context.
	ServiceContextKey = "service"
)

Variables

This section is empty.

Functions

func ServiceRedirector

func ServiceRedirector() gin.HandlerFunc

ServiceRedirector is a middleware to redirect the request to the right place.

Types

This section is empty.

Jump to

Keyboard shortcuts

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