Documentation
¶
Index ¶
Constants ¶
View Source
const ( RestRbacInterceptorMiddlewareObjectPath = "path" RestRbacInterceptorMiddlewareObjectRequestURI = "requestURI" )
Variables ¶
This section is empty.
Functions ¶
func CommonErrResponse ¶
Types ¶
type PathHttpInterceptorMiddleware ¶
type PathHttpInterceptorMiddleware struct {
// contains filtered or unexported fields
}
func NewPathHttpInterceptorMiddleware ¶
func NewPathHttpInterceptorMiddleware(isAllowedInheritRequestId bool) *PathHttpInterceptorMiddleware
func (*PathHttpInterceptorMiddleware) Handle ¶
func (m *PathHttpInterceptorMiddleware) Handle(next http.HandlerFunc) http.HandlerFunc
type RegionInterceptorMiddleware ¶
func NewRegionInterceptorMiddleware ¶
func NewRegionInterceptorMiddleware(region *ip2region.Ip2Region) *RegionInterceptorMiddleware
func (*RegionInterceptorMiddleware) Handle ¶
func (m *RegionInterceptorMiddleware) Handle(next http.HandlerFunc) http.HandlerFunc
type UaParserInterceptorMiddleware ¶
func NewUaParserInterceptorMiddleware ¶
func NewUaParserInterceptorMiddleware(uaparser *uaparser.Parser) *UaParserInterceptorMiddleware
func (*UaParserInterceptorMiddleware) Handle ¶
func (m *UaParserInterceptorMiddleware) Handle(next http.HandlerFunc) http.HandlerFunc
Click to show internal directories.
Click to hide internal directories.