Documentation ¶
Index ¶
- type Config
- type Option
- func WithCondition(cond condition.Condition) Option
- func WithConfig(conf *Config) Option
- func WithDebug(debug bool) Option
- func WithMetrics(metrics metrics.MetricList) Option
- func WithName(name string) Option
- func WithObjectConfig(obj any) Option
- func WithRawConfig(raw json.RawMessage) Option
- func WithWhere(where string) Option
- type Streamer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Name string Debug bool Store string Source string Metrics metrics.MetricList Raw json.RawMessage Where string WhereCond condition.Condition }
Config of the stream
func (*Config) UnmarshalJSON ¶ added in v0.4.0
UnmarshalJSON data
type Option ¶
type Option func(cnf *Config)
Option of the stream
func WithCondition ¶ added in v0.5.1
WithCondition condition
func WithMetrics ¶ added in v0.4.0
func WithMetrics(metrics metrics.MetricList) Option
WithMetrics of the stream
func WithObjectConfig ¶
WithObjectConfig converts Object to JSON storage config
type Streamer ¶ added in v0.4.0
type Streamer interface { // Close extension io.Closer // ID returns unical stream identificator ID() string // Put message to the stream to process information Put(ctx context.Context, msg message.Message) error // Check if message suits for the stream Check(ctx context.Context, msg message.Message) bool // Run processing loop Run(ctx context.Context) error }
Streamer interface of data processing describes basic methods of data pipeline
Click to show internal directories.
Click to hide internal directories.