entities

package
v0.0.0-alpha5 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EntityConfig

type EntityConfig struct {
	Entity           string    `json:"entity" bson:"entity"`
	SerializedConfig []byte    `json:"serialized_config" bson:"serialized_config"`
	Version          string    `json:"version" bson:"version"`
	CommitTime       time.Time `json:"commit_time" bson:"commit_time"`
}

EntityConfig -

func (EntityConfig) Collection

func (EntityConfig) Collection() string

Collection -

func (EntityConfig) Table

func (EntityConfig) Table() string

Table -

func (EntityConfig) ToSchema

func (e EntityConfig) ToSchema() (schema.Schema, errors.Error)

ToSchema -

type EntityConfigs

type EntityConfigs []EntityConfig

EntityConfigs -

func (EntityConfigs) ToSchema

func (e EntityConfigs) ToSchema() (schema.Schema, errors.Error)

ToSchema -

type RelationTuple

type RelationTuple struct {
	Entity          string    `json:"entity" bson:"entity"`
	ObjectID        string    `json:"object_id" bson:"object_id"`
	Relation        string    `json:"relation" bson:"relation"`
	UsersetEntity   string    `json:"userset_entity" bson:"userset_entity"`
	UsersetObjectID string    `json:"userset_object_id" bson:"userset_object_id"`
	UsersetRelation string    `json:"userset_relation" bson:"userset_relation"`
	CommitTime      time.Time `json:"commit_time" bson:"commit_time"`
}

RelationTuple -

func (RelationTuple) Collection

func (RelationTuple) Collection() string

Collection -

func (RelationTuple) Table

func (RelationTuple) Table() string

Table -

func (RelationTuple) ToTuple

func (r RelationTuple) ToTuple() tuple.Tuple

ToTuple -

type RelationTuples

type RelationTuples []RelationTuple

RelationTuples -

func (RelationTuples) ToTuple

func (r RelationTuples) ToTuple() (tuples []tuple.Tuple)

ToTuple -

Jump to

Keyboard shortcuts

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