Documentation ¶
Index ¶
Constants ¶
View Source
const ( // ErrIncompleteGraph is returned when a requested graph is incomplete ErrIncompleteGraph = errors.Error("incomplete graph") )
Variables ¶
This section is empty.
Functions ¶
func IsComplete ¶
IsComplete checks if a graph is missing any nodes
Types ¶
type Orchestrator ¶
type Orchestrator interface { Sync( ctx context.Context, stream object.Hash, recipients peer.LookupOption, options ...exchange.Option, ) (*Graph, error) Put(object.Object) error Get( ctx context.Context, root object.Hash, ) (*Graph, error) }
Orchestrator is responsible of keeping streams and their underlying graphs up to date
func New ¶
func New( st *sqlobjectstore.Store, ex exchange.Exchange, ds discovery.Discoverer, li *peer.LocalPeer, ) (Orchestrator, error)
New constructs a new orchestrator given an object store and exchange
func NewWithContext ¶
func NewWithContext( ctx context.Context, st *sqlobjectstore.Store, ex exchange.Exchange, ds discovery.Discoverer, li *peer.LocalPeer, ) (Orchestrator, error)
NewWithContext constructs a new orchestrator given an object store and exchange
Click to show internal directories.
Click to hide internal directories.