Documentation ¶
Overview ¶
Package router provides the router and API routes implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDebugRouter ¶
NewDebugRouter return the ServeMux with debug endpoints
func NewPolicyCacheHandler ¶
func NewPolicyCacheHandler(authd service.Authorizationd) func(w http.ResponseWriter, r *http.Request) error
NewPolicyCacheHandler returns the handler function to handle get policy cache request.
Types ¶
type Route ¶
Route contains information and handler of an API endpoint
func NewDebugRoutes ¶
func NewDebugRoutes(cfg config.DebugServer, a service.Authorizationd) []Route
NewDebugRoutes returns debug endpoint information. If EnableDump flag is enabled then the cache dump feature endpoint will be included. If EnableProfiling flag is enable then the pprof interface endpoint will be included.
Click to show internal directories.
Click to hide internal directories.