context

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextualAttributes

type ContextualAttributes struct {
	Attributes []*base.Attribute
}

ContextualAttributes - A collection of attributes with context.

func NewContextualAttributes

func NewContextualAttributes(attributes ...*base.Attribute) *ContextualAttributes

NewContextualAttributes - Creates a new collection of attributes with context.

func (*ContextualAttributes) QueryAttributes

QueryAttributes filters the attributes based on the provided filter, and returns an iterator to traverse through the filtered attributes.

func (*ContextualAttributes) QuerySingleAttribute

func (c *ContextualAttributes) QuerySingleAttribute(filter *base.AttributeFilter) (*base.Attribute, error)

QuerySingleAttribute filters the attributes based on the provided filter, and returns the first attribute from the filtered attributes, if any exist. If no attributes match the filter, it returns nil.

type ContextualTuples

type ContextualTuples struct {
	Tuples []*base.Tuple
}

ContextualTuples - A collection of tuples with context.

func NewContextualTuples

func NewContextualTuples(tuples ...*base.Tuple) *ContextualTuples

NewContextualTuples - Creates a new collection of tuples with context.

func (*ContextualTuples) QueryRelationships

func (c *ContextualTuples) QueryRelationships(filter *base.TupleFilter, pagination database.CursorPagination) (*database.TupleIterator, error)

QueryRelationships filters the ContextualTuples based on the provided TupleFilter and returns a TupleIterator for the filtered tuples. QueryRelationships filters the ContextualTuples based on the provided TupleFilter, applies cursor-based pagination, and returns a TupleIterator for the filtered tuples.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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