Documentation
¶
Index ¶
- type IObjectSource
- type Node
- func (n *Node) BroadcastMessage(objectId string, msg core.Message)
- func (n *Node) Close() error
- func (n *Node) Id() string
- func (n *Node) IncomingPump()
- func (n *Node) NotifyPropertyChange(propertyId string, value core.Any)
- func (n *Node) NotifySignal(signalId string, args core.Args)
- func (n *Node) RemoveNode()
- func (n *Node) SendMessage(msg core.Message)
- func (n *Node) SetOutput(out io.WriteCloser)
- func (n *Node) Write(data []byte) (int, error)
- type Registry
- func (r *Registry) AddObjectSource(source IObjectSource)
- func (r *Registry) AttachRemoteNode(node *Node)
- func (r *Registry) DetachRemoteNode(node *Node)
- func (r *Registry) GetObjectSource(objectId string) IObjectSource
- func (r *Registry) GetRemoteNodes(objectId string) []*Node
- func (r *Registry) Id() string
- func (r *Registry) IsRegistered(objectId string) bool
- func (r *Registry) LinkRemoteNode(objectId string, node *Node)
- func (e *Registry) NotifyPropertyChange(objectId string, kwargs core.KWArgs)
- func (e *Registry) NotifySignal(objectId string, name string, args core.Args)
- func (r *Registry) RemoveObjectSource(source IObjectSource)
- func (r *Registry) SetSourceFactory(factory SourceFactory)
- func (r *Registry) UnlinkRemoteNode(objectId string, node *Node)
- type SourceFactory
- type SourceToNodeEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IObjectSource ¶
type Node ¶
type Node struct { sync.Mutex Registry *Registry Converter core.MessageConverter // contains filtered or unexported fields }
func (*Node) IncomingPump ¶
func (n *Node) IncomingPump()
func (*Node) NotifyPropertyChange ¶
func (*Node) RemoveNode ¶
func (n *Node) RemoveNode()
func (*Node) SendMessage ¶
func (*Node) SetOutput ¶
func (n *Node) SetOutput(out io.WriteCloser)
type Registry ¶
Registry is the registry of remote objects. It is optimized for the retrieval of object sources A object source is registered in the registry and can be retrieved by the object id. The source can have one or more remote nodes linked to it.
func NewRegistry ¶
func NewRegistry() *Registry
func (*Registry) AddObjectSource ¶
func (r *Registry) AddObjectSource(source IObjectSource)
AddObjectSource adds the object source to the registry.
func (*Registry) AttachRemoteNode ¶
AttachRemoteNode attaches the node to the registry.
func (*Registry) DetachRemoteNode ¶
DetachRemoteNode removes the link between the object and the node.
func (*Registry) GetObjectSource ¶
func (r *Registry) GetObjectSource(objectId string) IObjectSource
GetObjectSource returns the object source by name.
func (*Registry) GetRemoteNodes ¶
GetRemoteNode returns the node that is linked to the object.
func (*Registry) IsRegistered ¶
Checks if the object is registered.
func (*Registry) LinkRemoteNode ¶
LinkRemoteNode adds a link between the object and the node.
func (*Registry) NotifyPropertyChange ¶
func (*Registry) NotifySignal ¶ added in v0.3.0
func (*Registry) RemoveObjectSource ¶
func (r *Registry) RemoveObjectSource(source IObjectSource)
RemoveObjectSource removes the object source from the registry.
func (*Registry) SetSourceFactory ¶
func (r *Registry) SetSourceFactory(factory SourceFactory)
SetSourceFactory sets the source factory.
func (*Registry) UnlinkRemoteNode ¶
UnlinkRemoteNode removes the link between the object and the node.
type SourceFactory ¶
type SourceFactory func(objectId string) IObjectSource
type SourceToNodeEntry ¶
type SourceToNodeEntry struct {
// contains filtered or unexported fields
}