Documentation ¶
Index ¶
- func Connect(accountAccessKeyID, accountSecretAccessKey, region string, ...) (*kinesis.Kinesis, error)
- func Create(ctx context.Context, client *kinesis.Kinesis, streamName string, ...) error
- func Delete(ctx context.Context, client *kinesis.Kinesis, streamName string) error
- func Describe(ctx context.Context, client *kinesis.Kinesis, streamName string) (*kinesis.DescribeStreamOutput, error)
- func GetRecord(client *kinesis.Kinesis, shardIterator *string) (*kinesis.GetRecordsOutput, error)
- func GetShardIterators(ctx context.Context, client *kinesis.Kinesis, streamName *string) ([]*string, error)
- func Publish(ctx context.Context, client *kinesis.Kinesis, streamName string, msg []byte, ...) error
- func WaitUntilActive(ctx context.Context, client *kinesis.Kinesis, streamName string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Connect ¶
func Connect(accountAccessKeyID, accountSecretAccessKey, region string, logger *zap.SugaredLogger) (*kinesis.Kinesis, error)
Connect creates a new Kinesis-Streaming connection.
func Create ¶
func Create(ctx context.Context, client *kinesis.Kinesis, streamName string, streamShards int64) error
Create function creates kinesis stream.
func Describe ¶
func Describe(ctx context.Context, client *kinesis.Kinesis, streamName string) (*kinesis.DescribeStreamOutput, error)
Describe accepts kinesis client and stream name and returns kinesis stream description.
func GetShardIterators ¶ added in v1.5.0
func GetShardIterators(ctx context.Context, client *kinesis.Kinesis, streamName *string) ([]*string, error)
GetShardIterators returns "latest" shard iterator for specified stream.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.