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, recipient *peer.Peer, ) (*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 resolver.Resolver, kc keychain.Keychain, ) (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 resolver.Resolver, kc keychain.Keychain, ) (Orchestrator, error)
NewWithContext constructs a new orchestrator given an object store and exchange
Click to show internal directories.
Click to hide internal directories.