package
0.40.0
Repository: https://github.com/radius-project/radius.git
Documentation: pkg.go.dev

# Functions

ConfigureDefaultHandlers registers handlers for the default operations such as getting operationStatuses and operationResults, and updating a subscription lifecycle.
CreateHandler creates an http.Handler for the given resource type and operation method.
HandleError handles unhandled errors from frontend controller and creates internal server error response based on the error type.
HandlerForController creates a http.HandlerFunc function that runs resource provider frontend controller, renders a http response from the returned rest.Response, and handles the error as a default internal error if this controller returns error.
New creates a frontend server that can listen on the provided address and serve requests - it creates an HTTP server with a router, configures the router with the given options, adds the default middlewares for logging, authentication, and service context, and then returns the server.
NewSubrouter creates a new subrouter and mounts it on the parent router with the given middlewares.
RegisterHandler registers a handler for the given resource type and method.

# Constants

APIVersion is a query string for the API version of Radius resource provider.
CatchAllPath is the path for the catch-all route.

# Variables

No description provided by the author

# Structs

HandlerOptions represents a controller to be registered with the server.
No description provided by the author
Service is the base worker service implementation to initialize and start web service.

# Type aliases

No description provided by the author