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 interface{}) error
func (*RawMessage) UnmarshalYAML ¶
func (r *RawMessage) UnmarshalYAML(unmarshal func(interface{}) 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)
Click to show internal directories.
Click to hide internal directories.