Documentation ¶
Index ¶
- Constants
- Variables
- func AreSubjectsEqual(s1, s2 *base.Subject) bool
- func E(e string) (*base.Entity, error)
- func EAR(ear string) (*base.EntityAndRelation, error)
- func EntityAndRelationToString(entityAndRelation *base.EntityAndRelation) string
- func EntityToString(entity *base.Entity) string
- func IsEntityAndSubjectEquals(t *base.Tuple) bool
- func IsRelationComputed(relation string) bool
- func IsSubjectUser(subject *base.Subject) bool
- func IsSubjectValid(subject *base.Subject) bool
- func SplitRelation(relation string) (a []string)
- func SubjectToString(subject *base.Subject) string
- func Tuple(tuple string) (*base.Tuple, error)
- func ValidateSubject(subject *base.Subject) error
- func ValidateSubjectType(subject *base.Subject, relationTypes []string) (err error)
- type Query
Constants ¶
View Source
const ( ENTITY = "%s:%s" RELATION = "#%s" )
View Source
const (
ELLIPSIS = "..."
)
View Source
const (
SEPARATOR = "."
)
View Source
const (
USER = "user"
)
Variables ¶
Functions ¶
func EntityAndRelationToString ¶
func EntityAndRelationToString(entityAndRelation *base.EntityAndRelation) string
EntityAndRelationToString -
func IsEntityAndSubjectEquals ¶
IsEntityAndSubjectEquals -
Types ¶
Click to show internal directories.
Click to hide internal directories.