package
1.1.3
Repository: https://github.com/permify/permify.git
Documentation: pkg.go.dev

# Functions

AreQueryAndSubjectEqual checks if a query and a subject are equal.
AreRelationReferencesEqual checks if two relation references are equal or not.
AreSubjectsEqual checks if two subjects are equal.
E function parses an Entity string and returns an Entity object.
EAR function parses a string to create a base.EntityAndRelation object.
EAREqual checks if two subjects are equal.
EntityAndRelationToString converts an EntityAndRelation object to string format.
EntityToString converts an Entity object to string format.
IsDirectSubject checks if the given subject is of type "user".
IsEntityAndSubjectEquals checks if the entity and subject of a Tuple object are equal.
IsRelationComputed checks if a relation is computed or not.
IsSubjectValid checks if a subject is valid or not.
NormalizeRelation normalizes the relation, treating ellipsis as an empty string.
ReferenceToString -.
RelationReference parses a relation reference string and returns a RelationReference object.
SplitRelation splits a relation string by the separator "." and returns the result as a slice.
SubjectToEAR converts a Subject object to an EntityAndRelation object.
SubjectToString converts a Subject object to string format.
ToString function converts a Tuple object to a string format.
Tuple parses a tuple string and returns a Tuple object.
ValidateSubjectType validates if the subject type and relation are present in the list of allowed relation types.

# Constants

ellipsis string.
format string for entity in the form of "<type>:<id>".
format string for reference in the form of "<type>#<relation>".
format string for relation in the form of "#<relation>".
separator string used to concatenate entity and relation.

# Variables

No description provided by the author
No description provided by the author
No description provided by the author