Documentation ¶
Index ¶
- Constants
- func NewAWSKinesis(logger logger.Logger) bindings.InputOutputBinding
- type AWSKinesis
- func (a *AWSKinesis) Close() error
- func (a *AWSKinesis) GetComponentMetadata() (metadataInfo metadata.MetadataMap)
- func (a *AWSKinesis) Init(ctx context.Context, metadata bindings.Metadata) error
- func (a *AWSKinesis) Invoke(ctx context.Context, req *bindings.InvokeRequest) (*bindings.InvokeResponse, error)
- func (a *AWSKinesis) Operations() []bindings.OperationKind
- func (a *AWSKinesis) Read(ctx context.Context, handler bindings.Handler) (err error)
- func (a *AWSKinesis) Subscribe(ctx context.Context, streamDesc kinesis.StreamDescription, ...) error
Constants ¶
View Source
const ( // ExtendedFanout - dedicated throughput through data stream api. ExtendedFanout = "extended" SharedThroughput = "shared" )
Variables ¶
This section is empty.
Functions ¶
func NewAWSKinesis ¶
func NewAWSKinesis(logger logger.Logger) bindings.InputOutputBinding
NewAWSKinesis returns a new AWS Kinesis instance.
Types ¶
type AWSKinesis ¶
type AWSKinesis struct {
// contains filtered or unexported fields
}
AWSKinesis allows receiving and sending data to/from AWS Kinesis stream.
func (*AWSKinesis) Close ¶ added in v1.11.0
func (a *AWSKinesis) Close() error
func (*AWSKinesis) GetComponentMetadata ¶ added in v1.11.0
func (a *AWSKinesis) GetComponentMetadata() (metadataInfo metadata.MetadataMap)
GetComponentMetadata returns the metadata of the component.
func (*AWSKinesis) Invoke ¶
func (a *AWSKinesis) Invoke(ctx context.Context, req *bindings.InvokeRequest) (*bindings.InvokeResponse, error)
func (*AWSKinesis) Operations ¶
func (a *AWSKinesis) Operations() []bindings.OperationKind
func (*AWSKinesis) Subscribe ¶
func (a *AWSKinesis) Subscribe(ctx context.Context, streamDesc kinesis.StreamDescription, handler bindings.Handler) error
Subscribe to all shards.
Click to show internal directories.
Click to hide internal directories.