Documentation ¶
Index ¶
- func GetMetricKey(entityID string, m Metric) string
- func GetPrevMetricKey(entityID string, m Metric) string
- func NewApiNode(instance m.Component, conf *Configuration) (*module.Node, error)
- func UpdateWithConfigurableDefinitions(portName string, original []byte, updateWith []byte, ...) ([]byte, error)
- type Configuration
- type MapPort
- type Metric
- type Msg
- type PortConfig
- type Runner
- func (c *Runner) Configure(ctx context.Context, msg *Msg)
- func (c *Runner) Discovery(ctx context.Context) discovery.Node
- func (c *Runner) IsRunning() bool
- func (c *Runner) Run(ctx context.Context, runConfigMsg *Msg, inputCh chan *Msg, outputCh chan *Msg) error
- func (c *Runner) SetConfig(config *module.RunnerConfig) *Runner
- func (c *Runner) SetLogger(l zerolog.Logger) *Runner
- type TagDefinition
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMetricKey ¶
func GetPrevMetricKey ¶
func NewApiNode ¶
func NewApiNode(instance m.Component, conf *Configuration) (*module.Node, error)
Types ¶
type Configuration ¶
type Configuration struct { sync.RWMutex ID string // uuid // for nats subject FlowID string //Label string //Name string // where send message next DestinationMap map[string][]MapPort // fromNode => string => PortConfig PortConfigMap map[string]map[string]PortConfig Revision int64 // asked to be running Run bool ComponentID string Data map[string]interface{} }
func (*Configuration) GetPortConfig ¶
func (c *Configuration) GetPortConfig(portName string, from *string) *PortConfig
func (*Configuration) ShouldRun ¶
func (c *Configuration) ShouldRun() bool
type Msg ¶
type Msg struct { Subject string Data interface{} // contains filtered or unexported fields }
Msg being sent via instances edges
func NewMsgWithSubject ¶
type PortConfig ¶
type TagDefinition ¶
Click to show internal directories.
Click to hide internal directories.