graph

package
v0.33.28 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2026 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Checker

type Checker struct {
	// contains filtered or unexported fields
}

func NewCheck

func NewCheck(m *model.Model, req *dsr.CheckRequest, reader RelationReader, pool *mempool.RelationsPool) *Checker

func (*Checker) Check

func (c *Checker) Check() (bool, error)

func (*Checker) Reason

func (c *Checker) Reason() string

func (*Checker) Trace

func (c *Checker) Trace() []string

type MessagePool

type MessagePool[T any] interface {
	Get() T
	Put(message T)
}

type ObjectID

type ObjectID = model.ObjectID

type ObjectSearch

type ObjectSearch struct {
	// contains filtered or unexported fields
}

func NewObjectSearch

func NewObjectSearch(m *model.Model, req *dsr.GetGraphRequest, reader RelationReader, pool *mempool.RelationsPool) (*ObjectSearch, error)

func (*ObjectSearch) Search

func (s *ObjectSearch) Search() (*dsr.GetGraphResponse, error)

type RelationPool

type RelationPool = MessagePool[*dsc.RelationIdentifier]

type RelationReader

type RelationReader func(*dsc.RelationIdentifier, RelationPool, *Relations) error

RelationReader retrieves relations that match the given filter.

type Relations

type Relations = []*dsc.RelationIdentifier

type SubjectSearch

type SubjectSearch struct {
	// contains filtered or unexported fields
}

func NewSubjectSearch

func NewSubjectSearch(
	m *model.Model,
	req *dsr.GetGraphRequest,
	reader RelationReader,
	pool *mempool.RelationsPool,
) (*SubjectSearch, error)

func (*SubjectSearch) Search

func (s *SubjectSearch) Search() (*dsr.GetGraphResponse, error)

Jump to

Keyboard shortcuts

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