rexMiddleware

package
v1.0.90 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RestRbacInterceptorMiddlewareObjectPath       = "path"
	RestRbacInterceptorMiddlewareObjectRequestURI = "requestURI"
)

Variables

This section is empty.

Functions

func CommonErrResponse

func CommonErrResponse(w http.ResponseWriter, r *http.Request, Code int32, v ...any)

Types

type PathHttpInterceptorMiddleware

type PathHttpInterceptorMiddleware struct {
	// contains filtered or unexported fields
}

func NewPathHttpInterceptorMiddleware

func NewPathHttpInterceptorMiddleware(isAllowedInheritRequestId bool) *PathHttpInterceptorMiddleware

func (*PathHttpInterceptorMiddleware) Handle

type RegionInterceptorMiddleware

type RegionInterceptorMiddleware struct {
	Region *ip2region.Ip2Region
}

func NewRegionInterceptorMiddleware

func NewRegionInterceptorMiddleware(region *ip2region.Ip2Region) *RegionInterceptorMiddleware

func (*RegionInterceptorMiddleware) Handle

type UaParserInterceptorMiddleware

type UaParserInterceptorMiddleware struct {
	Uaparser *uaparser.Parser
}

func NewUaParserInterceptorMiddleware

func NewUaParserInterceptorMiddleware(uaparser *uaparser.Parser) *UaParserInterceptorMiddleware

func (*UaParserInterceptorMiddleware) Handle

Jump to

Keyboard shortcuts

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