check

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

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 New

func New(m *model.Model, req *dsr.CheckRequest, reader RelationReader) *Checker

func (*Checker) Check

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

func (*Checker) Trace

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

type ObjectID

type ObjectID = model.ObjectID

type ObjectSearch added in v0.1.1

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

func NewObjectSearch added in v0.1.1

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

func (*ObjectSearch) Search added in v0.1.1

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

type RelationReader

type RelationReader func(*dsc.Relation) ([]*dsc.Relation, error)

RelationReader retrieves relations that match the given filter.

type SubjectSearch added in v0.1.1

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

func NewSubjectSearch added in v0.1.1

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

func (*SubjectSearch) Search added in v0.1.1

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