Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Name string `yaml:"name"`
SinkType SinkType `yaml:"type"`
Config *RawMessage `yaml:"config"`
FilterConfig pxatu.EventFilterConfig `yaml:"filter"`
ShippingMethod *processor.ShippingMethod `yaml:"shippingMethod"`
}
type RawMessage ¶
type RawMessage struct {
// contains filtered or unexported fields
}
func (*RawMessage) Unmarshal ¶
func (r *RawMessage) Unmarshal(v any) error
func (*RawMessage) UnmarshalYAML ¶
func (r *RawMessage) UnmarshalYAML(unmarshal func(any) error) error
type Sink ¶
type Sink interface {
Start(ctx context.Context) error
Stop(ctx context.Context) error
Type() string
Name() string
HandleNewDecoratedEvent(ctx context.Context, event *xatu.DecoratedEvent) error
HandleNewDecoratedEvents(ctx context.Context, events []*xatu.DecoratedEvent) error
}
func NewSink ¶
func NewSink(name string, sinkType SinkType, config *RawMessage, log logrus.FieldLogger, filterConfig pxatu.EventFilterConfig, shippingMethod processor.ShippingMethod) (Sink, error)
Directories
¶
| Path | Synopsis |
|---|---|
|
Package clickhouse implements an output sink that writes DecoratedEvents directly to ClickHouse using the shared writer + router stack from pkg/clickhouse.
|
Package clickhouse implements an output sink that writes DecoratedEvents directly to ClickHouse using the shared writer + router stack from pkg/clickhouse. |
|
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.