Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrNotFound is returned when a link or edge lookup fails ErrNotFound = errors.New("not found") // ErrUnknownEdgeLinks is returned when attempting to create an edge // with an invalid source and/or destination ID ErrUnknownEdgeLinks = errors.New("unknown source and/or destination for edge") )
Functions ¶
This section is empty.
Types ¶
type EdgeIterator ¶
type Graph ¶
type Graph interface { UpsertLink(link *Link) error FindLink(id uuid.UUID) (*Link, error) Links(fromID, toID uuid.UUID, retrievedBefore time.Time) (LinkIterator, error) UpsertEdge(edge *Edge) error Edges(fromID, toID uuid.UUID, updatedBefore time.Time) (EdgeIterator, error) RemoveStaleEdges(fromID uuid.UUID, updatedBefore time.Time) error }
Graph is implemented by objects that can mutate or query a link graph
type LinkIterator ¶
Click to show internal directories.
Click to hide internal directories.