expand

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const RouteBase = "/relation-tuples/expand"

Variables

This section is empty.

Functions

func AssertExternalTreesAreEqual

func AssertExternalTreesAreEqual(t *testing.T, expected, actual *ketoapi.Tree[*ketoapi.RelationTuple])

func AssertInternalTreesAreEqual

func AssertInternalTreesAreEqual(t *testing.T, expected, actual *relationtuple.Tree) bool

func NewHandler

func NewHandler(d handlerDependencies) *handler

Types

type Engine

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

func NewEngine

func NewEngine(d EngineDependencies) *Engine

func (*Engine) BuildTree

func (e *Engine) BuildTree(ctx context.Context, subject relationtuple.Subject, restDepth int) (t *relationtuple.Tree, err error)

type EngineProvider

type EngineProvider interface {
	ExpandEngine() *Engine
}

Jump to

Keyboard shortcuts

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