Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeRoutes ¶
func InitializeRoutes(source *workloadapi.X509Source)
InitializeRoutes initializes the HTTP routes for the web server. It sets up an HTTP handler function for the root URL ("/"). The handler uses the given X509Source to retrieve X.509 SVIDs for validating incoming connections.
Parameters:
- source: A pointer to a `workloadapi.X509Source`, used to obtain X.509 SVIDs.
Note: The InitializeRoutes function should be called only once, usually during server initialization.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.