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 { Subscriber Sync( ctx context.Context, selector []string, addresses []string, ) ( *Graph, error, ) Put(...object.Object) error Get( ctx context.Context, rootHash string, ) ( *Graph, error, ) }
Orchestrator is responsible of keeping streams and their underlying graphs up to date
func New ¶
func New( store graph.Store, exchange exchange.Exchange, discovery discovery.Discoverer, localInfo *peer.LocalPeer, ) ( Orchestrator, error, )
New constructs a new orchestrator given an object store and exchange
func NewWithContext ¶
func NewWithContext( ctx context.Context, store graph.Store, exchange exchange.Exchange, discovery discovery.Discoverer, localInfo *peer.LocalPeer, ) ( Orchestrator, error, )
NewWithContext constructs a new orchestrator given an object store and exchange
type Publisher ¶
type Publisher interface {
Publish(string)
}
Publisher deals with the publishing part of our PubSub
type Subscriber ¶
Subscriber deals with the subscribing part of our PubSub
Click to show internal directories.
Click to hide internal directories.