Documentation ¶
Index ¶
- Constants
- type Codec
- type JsonCodec
- type MetaSink
- func (s *MetaSink) Invoke(methodId string, args core.Args, cb func(v core.Any))
- func (s *MetaSink) ObjectId() string
- func (s *MetaSink) OnInit(objectId string, props core.KWArgs, node *client.Node)
- func (s *MetaSink) OnPropertyChange(propertyId string, value core.Any)
- func (s *MetaSink) OnRelease()
- func (s *MetaSink) OnSignal(signalId string, args core.Args)
- type MetaSource
- func (m *MetaSource) CollectProperties() (core.KWArgs, error)
- func (m *MetaSource) Invoke(methodId string, args core.Args) (core.Any, error)
- func (m *MetaSource) Linked(objectId string, node *remote.Node) error
- func (m *MetaSource) ObjectId() string
- func (m *MetaSource) SetProperty(propertyId string, value core.Any) error
- type Proxy
- type RelaySource
- func (s *RelaySource) CollectProperties() (core.KWArgs, error)
- func (s *RelaySource) Invoke(methodId string, args core.Args) (core.Any, error)
- func (s *RelaySource) Linked(objectId string, node *remote.Node) error
- func (s *RelaySource) ObjectId() string
- func (s *RelaySource) SetProperty(propertyId string, value core.Any) error
Constants ¶
View Source
const (
DefaultTimeout = time.Second * 5
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Codec ¶
type MetaSink ¶
type MetaSink struct { Properties core.KWArgs Change func(name string, value core.Any) Signal func(name string, args core.Args) // contains filtered or unexported fields }
func NewMetaSink ¶
func (*MetaSink) OnPropertyChange ¶
type MetaSource ¶
type MetaSource struct { Properties core.KWArgs OnInvoke map[string]func(args core.Args) core.Any // contains filtered or unexported fields }
func (*MetaSource) CollectProperties ¶
func (m *MetaSource) CollectProperties() (core.KWArgs, error)
func (*MetaSource) ObjectId ¶
func (m *MetaSource) ObjectId() string
func (*MetaSource) SetProperty ¶
func (m *MetaSource) SetProperty(propertyId string, value core.Any) error
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
func (*Proxy) CreateClientNode ¶
func (*Proxy) CreateRemoteNode ¶
func (*Proxy) SinkRegistry ¶
func (*Proxy) SourceRegistry ¶
type RelaySource ¶
type RelaySource struct {
// contains filtered or unexported fields
}
func NewRelaySource ¶
func NewRelaySource(id string, conn *nats.Conn, codec Codec) *RelaySource
func (*RelaySource) CollectProperties ¶
func (s *RelaySource) CollectProperties() (core.KWArgs, error)
func (*RelaySource) ObjectId ¶
func (s *RelaySource) ObjectId() string
func (*RelaySource) SetProperty ¶
func (s *RelaySource) SetProperty(propertyId string, value core.Any) error
Click to show internal directories.
Click to hide internal directories.