util

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

View Source
const (
	ApiTokenPrefix = "API-TOKEN:"
)

Variables

This section is empty.

Functions

func CheckIfAdminOrApiToken added in v0.7.1

func CheckIfAdminOrApiToken(email string) bool

func CheckIfApiToken added in v0.7.1

func CheckIfApiToken(email string) bool

func CheckValidationForRoleGroupCreation

func CheckValidationForRoleGroupCreation(name string) bool

func ConvertEmailToLowerCase added in v0.7.1

func ConvertEmailToLowerCase(email string) string

func ConvertEmailsToLowerCase added in v0.7.1

func ConvertEmailsToLowerCase(emails []string) []string

func GetUserMetadata added in v1.5.1

func GetUserMetadata(ctx context.Context, userId int32, isSuperAdmin bool) *bean.UserMetadata

Types

This section is empty.

Jump to

Keyboard shortcuts

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