mirror of
https://github.com/hanzoai/tasks.git
synced 2026-10-04 02:04:03 +00:00
## What Extract `"temporal"` and `"internal"` string literals into `InternalPrincipalType` and `InternalPrincipalName` constants in `common/authorization/principal.go`. ## Why Reuse across the codebase. ## How did you test it? Existing unit tests Co-authored-by: Hanzo Dev <[email protected]>
10 lines
273 B
Go
10 lines
273 B
Go
package authorization
|
|
|
|
// Defines principal types and names supported in Temporal.
|
|
const (
|
|
// Identifies internal Temporal-managed services such as history,
|
|
// matching, per-namespace worker, etc.
|
|
InternalPrincipalType = "temporal"
|
|
InternalPrincipalName = "internal"
|
|
)
|