Skip to content

SudoSOS Back-end API / internal/controller

internal/controller ​

This is the module page of policy.

Interfaces ​

InterfaceDescription
BodyValidatorThe BodyValidator interface represents the Swagger model validation that is performed on the HTTP request body.
MethodPolicyThe MethodPolicy interface represents a single HTTP method of a route
PolicyThe Policy interface represents all route definitions of a router. These definitions include the authorization middleware and handler function definitions.
PolicyImplementationThe PolicyImplementation interface represents a function that determines if the given request is allowed to execute the handler. If this is not allowed, the function must return false. This policy is wrappable in a PolicyMiddleware.

Type Aliases ​

Type AliasDescription
MethodA custom type defining all supported HTTP methods.
RoutePolicyThe RoutePolicy interface represents all route definitions of a router. These definitions include the authorization middleware and handler function definitions.