SudoSOS Back-end API / internal/controller
internal/controller ​
This is the module page of policy.
Interfaces ​
| Interface | Description |
|---|---|
| BodyValidator | The BodyValidator interface represents the Swagger model validation that is performed on the HTTP request body. |
| MethodPolicy | The MethodPolicy interface represents a single HTTP method of a route |
| Policy | The Policy interface represents all route definitions of a router. These definitions include the authorization middleware and handler function definitions. |
| PolicyImplementation | The 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 Alias | Description |
|---|---|
| Method | A custom type defining all supported HTTP methods. |
| RoutePolicy | The RoutePolicy interface represents all route definitions of a router. These definitions include the authorization middleware and handler function definitions. |