dynamo

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(ctx context.Context, store *Store, graph curie.IRI, bag spock.Bag) (spock.Bag, error)

func Match

func Match(ctx context.Context, store *Store, graph curie.IRI, q spock.Pattern) (spock.Stream, error)

func Put

func Put(ctx context.Context, store *Store, graph curie.IRI, spock spock.SPOCK) error

Types

type Iterator

type Iterator[T dynamo.Thing] struct {
	// contains filtered or unexported fields
}

func (*Iterator[T]) Head

func (iter *Iterator[T]) Head() T

func (*Iterator[T]) Next

func (iter *Iterator[T]) Next() bool

type Seq

type Seq[T dynamo.Thing] interface {
	Head() T
	Next() bool
}

func NewIterator

func NewIterator[T dynamo.Thing](store *ddb.Storage[T], query T) Seq[T]

type Store

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

func New

func New(connector string, opts ...dynamo.Option) (*Store, error)

type Unfold

type Unfold[T dynamo.Thing] struct {
	// contains filtered or unexported fields
}

func (*Unfold[T]) FMap

func (unfold *Unfold[T]) FMap(f func(spock.SPOCK) error) error

func (*Unfold[T]) Head

func (unfold *Unfold[T]) Head() spock.SPOCK

func (*Unfold[T]) Next

func (unfold *Unfold[T]) Next() bool

type Writer

type Writer interface {
	Put(ctx context.Context, store *Store) error
	Cut(ctx context.Context, store *Store) error
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳