Documentation
¶
Index ¶
- type Getter
- type Registry
- func (s *Registry) Discover(ctx context.Context, subj string, instanceID string, getData func() []byte) error
- func (s *Registry) Lookup(replySubject, subj string, minDur time.Duration, maxDur time.Duration) ([]*modulepb.DiscoveryNode, error)
- func (s *Registry) LookupComponents(ctx context.Context, workspaceID string) ([]*modulepb.DiscoveryNode, error)
- func (s *Registry) LookupFlows(ctx context.Context, workspaceID string) ([]*modulepb.DiscoveryNode, error)
- func (s *Registry) LookupModules(ctx context.Context, serverID string) ([]*modulepb.DiscoveryNode, error)
- func (s *Registry) LookupNodes(flowID string) ([]*modulepb.DiscoveryNode, error)
- func (s *Registry) LookupServers(ctx context.Context, workspaceID string) ([]*modulepb.DiscoveryNode, error)
- func (s *Registry) SetLogger(l zerolog.Logger) *Registry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry(nc *nats.Conn) *Registry
func (*Registry) Discover ¶
func (s *Registry) Discover(ctx context.Context, subj string, instanceID string, getData func() []byte) error
Discover universal method listens for subj messages and responses back to the reply subject
func (*Registry) LookupComponents ¶
func (*Registry) LookupFlows ¶
func (*Registry) LookupModules ¶
func (*Registry) LookupNodes ¶
func (s *Registry) LookupNodes(flowID string) ([]*modulepb.DiscoveryNode, error)
func (*Registry) LookupServers ¶
Click to show internal directories.
Click to hide internal directories.