Documentation ¶
Index ¶
- Constants
- func CheckOrganisation(h http.Handler) http.Handler
- func CheckOwnerFromKavach(uID, oID int) (bool, error)
- func CheckSuperOrganisation(h http.Handler) http.Handler
- func GenerateFilters(tagIDs []string) string
- func GetOrganisation(ctx context.Context) (int, error)
- func GetRequest(url string) error
- func KavachChecker() error
- func KetoChecker() error
- func KratosChecker() error
- func MeiliChecker() error
Constants ¶
View Source
const OrganisationIDKey ctxKeyOrganisationID = 0
OrganisationIDKey is the key that holds the unique Organisation ID in a request context.
Variables ¶
This section is empty.
Functions ¶
func CheckOrganisation ¶
CheckOrganisation check X-Organisation in header
func CheckOwnerFromKavach ¶
CheckOwnerFromKavach checks if user is owner of organisation
func CheckSuperOrganisation ¶
CheckSuperOrganisation checks weather organisation of user is super org or not
func GenerateFilters ¶
func GetOrganisation ¶
GetOrganisation return Organisation ID
func GetRequest ¶
GetRequest returns error if error in status code
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.