cdb

package
v0.0.0-...-e97be17 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CockroachDBGraph

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

func NewCockroachDBGraph

func NewCockroachDBGraph(dsn string) (*CockroachDBGraph, error)

func (*CockroachDBGraph) Close

func (c *CockroachDBGraph) Close() error

func (*CockroachDBGraph) Edges

func (c *CockroachDBGraph) Edges(fromID, toID uuid.UUID, updatedBefore time.Time) (graph.EdgeIterator, error)
func (c *CockroachDBGraph) FindLink(id uuid.UUID) (*graph.Link, error)
func (c *CockroachDBGraph) Links(fromID, toID uuid.UUID, accessedBefore time.Time) (graph.LinkIterator, error)

func (*CockroachDBGraph) RemoveStaleEdges

func (c *CockroachDBGraph) RemoveStaleEdges(fromID uuid.UUID, updatedBefore time.Time) error

func (*CockroachDBGraph) UpsertEdge

func (c *CockroachDBGraph) UpsertEdge(edge *graph.Edge) error
func (c *CockroachDBGraph) UpsertLink(link *graph.Link) error

Jump to

Keyboard shortcuts

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