Documentation ¶
Index ¶
- Variables
- func NewPlugin() (*pkgplugin.Plugin, error)
- func NewPluginVersion(name string, version string, commitID string) (*pkgplugin.Plugin, error)
- func NewReceiver(tid tenant.Id, plugin string, name string, config interface{}, ...) (receiver.Receiver, error)
- func NewSender(tid tenant.Id, plugin string, name string, config interface{}, ...) (sender.Sender, error)
- type Receiver
- func (r *Receiver) Config() interface{}
- func (r *Receiver) Count() int
- func (r *Receiver) Name() string
- func (r *Receiver) Plugin() string
- func (r *Receiver) Receive(next receiver.NextFn) error
- func (r *Receiver) StopReceiving(ctx context.Context) error
- func (r *Receiver) Tenant() tenant.Id
- func (r *Receiver) Trigger(e event.Event)
- type ReceiverConfig
- type Sender
- type SenderConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Name = "redis" Version = "v0.0.0" CommitID = "" )
View Source
var DefaultReceiverConfig = ReceiverConfig{ Endpoint: "localhost:6379", Channel: "ears", TracePayloadOnNack: pointer.Bool(false), }
View Source
var DefaultSenderConfig = SenderConfig{
Endpoint: "localhost:6379",
Channel: "ears",
}
Functions ¶
func NewPluginVersion ¶
func NewReceiver ¶
Types ¶
type ReceiverConfig ¶
type ReceiverConfig struct { Endpoint string `json:"endpoint,omitempty"` Channel string `json:"channel,omitempty"` TracePayloadOnNack *bool `json:"tracePayloadOnNack,omitempty"` }
func (*ReceiverConfig) Validate ¶
func (rc *ReceiverConfig) Validate() error
Validate returns an error upon validation failure
func (*ReceiverConfig) WithDefaults ¶
func (rc *ReceiverConfig) WithDefaults() ReceiverConfig
WithDefaults returns a new config object that has all of the unset (nil) values filled in.
type Sender ¶
func (*Sender) StopSending ¶
type SenderConfig ¶
type SenderConfig struct { Endpoint string `json:"endpoint,omitempty"` Channel string `json:"channel,omitempty"` }
SenderConfig can be passed into NewSender() in order to configure the behavior of the sender.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.