Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Component ¶
type Component struct {
// contains filtered or unexported fields
}
Abstract component that supportes configurable dependencies, logging and performance counters.
Configuration parameters - dependencies: - [dependency name 1]: Dependency 1 locator (descriptor) - ... - [dependency name N]: Dependency N locator (descriptor) References - *:counters:*:*:1.0 (optional) ICounters components to pass collected measurements - *:logger:*:*:1.0 (optional) ILogger components to pass log messages - *:tracer:*:*:1.0 (optional) ITracer components to trace executed operations - ... References must match configured dependencies.
func InheritComponent ¶
func InheritComponent() *Component
func (*Component) Configure ¶
func (c *Component) Configure(ctx context.Context, config *config.ConfigParams)
Configures component by passing configuration parameters.
Parameters: - ctx context.Context - config configuration parameters to be set.
func (*Component) SetReferences ¶
func (c *Component) SetReferences(ctx context.Context, references refer.IReferences)
SetReferences sets the component references. References must match configured dependencies.
Parameters: - ctx context.Context - references IReferences references to set.
Click to show internal directories.
Click to hide internal directories.