Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service[T goservectx.Principal] interface { // LoadPrincipal loads the principal information for the given API request context. // This method is responsible for extracting and validating the user or session-specific // data from the incoming request, ensuring that the request is associated with a valid principal. // // Parameters: // - ctx: The API request context containing the necessary metadata and headers. // // Returns: // - A boolean value indicating whether the principal was successfully loaded. // Returns true if the principal is valid and loaded successfully; otherwise, false. LoadPrincipal(ctx *goservectx.Request[T]) bool }
Click to show internal directories.
Click to hide internal directories.