tuple

package
v0.0.0-alpha1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OBJECT   = "%s:%s"
	RELATION = "#%s"
)
View Source
const (
	ELLIPSIS = "..."
)
View Source
const (
	SEPARATOR = "."
)
View Source
const (
	USER = "user"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Object

type Object struct {
	Namespace string
	ID        string
}

Object -

func ConvertObject

func ConvertObject(v string) (Object, error)

ConvertObject -

type Relation

type Relation string

Relation -

func (Relation) IsComputed

func (r Relation) IsComputed() bool

IsComputed -

func (Relation) Split

func (r Relation) Split() (a []Relation)

Split -

func (Relation) String

func (r Relation) String() string

String -

type Tuple

type Tuple struct {
	Object   Object
	Relation string
	User     User
}

Tuple -

func (Tuple) String

func (r Tuple) String() string

String -

type User

type User struct {
	UserSet UserSet
	ID      string
}

User -

func ConvertUser

func ConvertUser(v string) User

ConvertUser -

func (User) Equals

func (u User) Equals(v interface{}) bool

Equals -

func (User) IsUser

func (u User) IsUser() bool

IsUser -

func (User) IsValid

func (u User) IsValid() bool

IsValid -

func (User) String

func (u User) String() string

String -

type UserSet

type UserSet struct {
	Object   Object
	Relation Relation
}

UserSet -

Jump to

Keyboard shortcuts

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