Documentation ¶
Index ¶
- func FromJobRetention(req *http.Request) bool
- func FromJobservice(req *http.Request) bool
- func GetClientIP(r *http.Request) string
- func GetUserAgent(r *http.Request) string
- func Middleware(skippers ...middleware.Skipper) func(http.Handler) http.Handler
- func UnauthorizedMiddleware(skippers ...middleware.Skipper) func(http.Handler) http.Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromJobRetention ¶
FromJobRetention detects whether this request is from tag retention job.
func FromJobservice ¶
FromJobservice detects whether this request is from jobservice.
func GetUserAgent ¶
GetUserAgent get the user agent of current request
func Middleware ¶
Middleware returns a security context middleware that populates the security context into the request context
func UnauthorizedMiddleware ¶
UnauthorizedMiddleware returns a security context middleware that populates the unauthorized security context when not security context found in the request context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.