prolog

package
v0.0.0-...-aed1f37 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Prolog

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

func MustNew

func MustNew() *Prolog

func (*Prolog) Check

func (p *Prolog) Check(ctx context.Context, tuple *pb.Tuple) (bool, error)

func (*Prolog) DeleteSchema

func (p *Prolog) DeleteSchema(ctx context.Context) error

func (*Prolog) DeleteTuples

func (p *Prolog) DeleteTuples(ctx context.Context, tuples []*pb.Tuple) error

func (*Prolog) GetSchema

func (p *Prolog) GetSchema(ctx context.Context) ([]*pb.RelationConfig, error)

func (*Prolog) GetTuples

func (p *Prolog) GetTuples(ctx context.Context) ([]*pb.Tuple, error)

func (*Prolog) ListObjects

func (p *Prolog) ListObjects(ctx context.Context, namespace, relation, user string) ([]string, error)

func (*Prolog) WriteSchema

func (p *Prolog) WriteSchema(ctx context.Context, configs []*pb.RelationConfig) error

func (*Prolog) WriteTuples

func (p *Prolog) WriteTuples(ctx context.Context, tuples []*pb.Tuple) error

Jump to

Keyboard shortcuts

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