principal

package
v1.0.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL