xuser

package
v2.7.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImpersonatedUser

type ImpersonatedUser interface {
	RealUserId() uuid.UUID
}

ImpersonatedUser is an optional interface that can be implemented by User when it can provide the id of the user that is being impersonated. This is used to determine if the user is being impersonated or not. A User implementation can implement this interface but a specific user can be impersonated or not.

type User

type User interface {
	Id() uuid.UUID
	Name() string
	Tenant() string
	HasPermission(mustAll bool, permission ...string) error
	Permissions() []string
}

User represents the current user performing the request.

Jump to

Keyboard shortcuts

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