obj

package
v1.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CombineValidators

func CombineValidators[T any](validators []func(T) (bool, error)) func(T) (bool, error)

func MakeFallible

func MakeFallible[T, U any](fn func(T) U) func(T) (U, error)

func NewValidator

func NewValidator(
	ctx context.Context,
	ts *typesystem.TypeSystem,
	obj *structpb.Struct,
) func(*openfgav1.TupleKey) (bool, error)

Types

type Option

type Option func(o *Reader)

func WithConsistency

func WithConsistency(pref openfgav1.ConsistencyPreference) Option

func WithValidator

func WithValidator(fn func(*openfgav1.TupleKey) (bool, error)) Option

type Reader

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

func NewReader

func NewReader(
	store storage.RelationshipTupleReader,
	storeID string,
	opts ...Option,
) *Reader

func (*Reader) Read

Jump to

Keyboard shortcuts

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