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 = "s3" Version = "v0.0.0" CommitID = "" )
View Source
var DefaultReceiverConfig = ReceiverConfig{ Bucket: "", Path: "", Region: endpoints.UsWest2RegionID, AcknowledgeTimeout: pointer.Int(5), }
View Source
var DefaultSenderConfig = SenderConfig{ Bucket: "", Path: "", Region: endpoints.UsWest2RegionID, FileName: "", FilePath: "", }
Functions ¶
func NewPluginVersion ¶
func NewReceiver ¶
Types ¶
type ReceiverConfig ¶
type ReceiverConfig struct { Bucket string `json:"bucket,omitempty"` Path string `json:"path,omitempty"` Region string `json:"region,omitempty"` AcknowledgeTimeout *int `json:"acknowledgeTimeout,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 { Bucket string `json:"bucket,omitempty"` Path string `json:"path,omitempty"` Region string `json:"region,omitempty"` FileName string `json:"fileName,omitempty"` FilePath string `json:"filePath,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.