Documentation
¶
Index ¶
- Variables
- func NewPlugin() (*pkgplugin.Plugin, error)
- func NewPluginVersion(name string, version string, commitID string) (*pkgplugin.Plugin, error)
- func NewReceiver(config interface{}) (receiver.Receiver, error)
- func NewSender(config interface{}) (sender.Sender, error)
- type Receiver
- 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",
}
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"`
}
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.
Click to show internal directories.
Click to hide internal directories.