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