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