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 KinesisError
- type Receiver
- func (r *Receiver) Config() interface{}
- func (r *Receiver) EventErrorCount() int
- func (r *Receiver) EventErrorVelocity() int
- func (r *Receiver) EventSuccessCount() int
- func (r *Receiver) EventSuccessVelocity() int
- func (r *Receiver) EventTs() int64
- func (r *Receiver) Hash() string
- func (r *Receiver) LogSuccess()
- 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
- func (s *Sender) Config() interface{}
- func (s *Sender) EventErrorCount() int
- func (s *Sender) EventErrorVelocity() int
- func (s *Sender) EventSuccessCount() int
- func (s *Sender) EventSuccessVelocity() int
- func (s *Sender) EventTs() int64
- func (s *Sender) Hash() string
- func (s *Sender) Name() string
- func (s *Sender) Plugin() string
- func (s *Sender) Send(e event.Event)
- func (s *Sender) StopSending(ctx context.Context)
- func (s *Sender) Tenant() tenant.Id
- func (s *Sender) Unwrap() sender.Sender
- type SenderConfig
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Name = "kinesis" Version = "v0.0.0" CommitID = "" )
View Source
var DefaultReceiverConfig = ReceiverConfig{ StreamName: "", AcknowledgeTimeout: pointer.Int(5), ShardIteratorType: kinesis.ShardIteratorTypeLatest, TracePayloadOnNack: pointer.Bool(false), EnhancedFanOut: pointer.Bool(false), ConsumerName: "", AWSRoleARN: "", AWSSecretAccessKey: "", AWSAccessKeyId: "", AWSRegion: endpoints.UsWest2RegionID, MaxCheckpointAgeSeconds: pointer.Int(86400), UseCheckpoint: pointer.Bool(true), UseShardMonitor: pointer.Bool(false), StartingTimestamp: pointer.Int64(0), StartingSequenceNumber: "", }
View Source
var DefaultSenderConfig = SenderConfig{ StreamName: "", MaxNumberOfMessages: pointer.Int(1), SendTimeout: pointer.Int(1), PartitionKey: "", PartitionKeyPath: "", AWSRoleARN: "", AWSSecretAccessKey: "", AWSAccessKeyId: "", AWSRegion: endpoints.UsWest2RegionID, }
Functions ¶
func NewPluginVersion ¶
func NewReceiver ¶
Types ¶
type KinesisError ¶ added in v1.1.0
type KinesisError struct {
// contains filtered or unexported fields
}
func (*KinesisError) Error ¶ added in v1.1.0
func (e *KinesisError) Error() string
func (*KinesisError) Unwrap ¶ added in v1.1.0
func (e *KinesisError) Unwrap() error
type Receiver ¶
func (*Receiver) EventErrorCount ¶ added in v1.1.2
func (*Receiver) EventErrorVelocity ¶ added in v1.1.2
func (*Receiver) EventSuccessCount ¶ added in v1.1.2
func (*Receiver) EventSuccessVelocity ¶ added in v1.1.2
func (*Receiver) LogSuccess ¶ added in v1.1.2
func (r *Receiver) LogSuccess()
type ReceiverConfig ¶
type ReceiverConfig struct { StreamName string `json:"streamName,omitempty"` AcknowledgeTimeout *int `json:"acknowledgeTimeout,omitempty"` ShardIteratorType string `json:"shardIteratorType,omitempty"` TracePayloadOnNack *bool `json:"tracePayloadOnNack,omitempty"` EnhancedFanOut *bool `json:"enhancedFanOut,omitempty"` ConsumerName string `json:"consumerName,omitempty"` // enhanced fan-out only AWSRoleARN string `json:"awsRoleARN,omitempty"` AWSAccessKeyId string `json:"awsAccessKeyId,omitempty"` AWSSecretAccessKey string `json:"awsSecretAccessKey,omitempty"` AWSRegion string `json:"awsRegion,omitempty"` UseCheckpoint *bool `json:"useCheckpoint,omitempty"` MaxCheckpointAgeSeconds *int `json:"maxCheckpointAgeSeconds,omitempty"` UseShardMonitor *bool `json:"useShardMonitor,omitempty"` StartingSequenceNumber string `json:"startingSequenceNumber,omitempty"` StartingTimestamp *int64 `json:"startingTimestamp,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) EventErrorCount ¶ added in v1.1.2
func (*Sender) EventErrorVelocity ¶ added in v1.1.2
func (*Sender) EventSuccessCount ¶ added in v1.1.2
func (*Sender) EventSuccessVelocity ¶ added in v1.1.2
func (*Sender) StopSending ¶
type SenderConfig ¶
type SenderConfig struct { StreamName string `json:"streamName,omitempty"` MaxNumberOfMessages *int `json:"maxNumberOfMessages,omitempty"` SendTimeout *int `json:"sendTimeout,omitempty"` PartitionKey string `json:"partitionKey,omitempty"` PartitionKeyPath string `json:"partitionKeyPath,omitempty"` AWSRoleARN string `json:"awsRoleARN,omitempty"` AWSAccessKeyId string `json:"awsAccessKeyId,omitempty"` AWSSecretAccessKey string `json:"awsSecretAccessKey,omitempty"` AWSRegion string `json:"awsRegion,omitempty"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.