Documentation ¶
Index ¶
- type DynamoService
- type ShardSequence
- type StreamService
- type Subscriber
- func (r *Subscriber) SetErrorBufferSize(bufferSize int32)
- func (r *Subscriber) SetMaximumRecords(maximumRecords int32)
- func (r *Subscriber) SetRecordBufferSize(bufferSize int32)
- func (r *Subscriber) SetShardIteratorInitialInterval(shardIteratorInitialInterval time.Duration)
- func (r *Subscriber) SetShardIteratorMaxInterval(shardIteratorMaxInterval time.Duration)
- func (r *Subscriber) SetShardIteratorType(shardIteratorType types.ShardIteratorType)
- func (r *Subscriber) SetShardProcessQueueSize(shardProcessQueueSize int)
- func (r *Subscriber) SetShardProcessWorkers(shardProcessWorkers int)
- func (r *Subscriber) SetShardSequenceIteratorType(shardSequenceIteratorType types.ShardIteratorType)
- func (r *Subscriber) SetShardSequences(shardSequences []*ShardSequence)
- func (r *Subscriber) SetShardUpdateInterval(shardUpdateInterval time.Duration)
- func (r *Subscriber) ShardSequences() []*ShardSequence
- func (r *Subscriber) Shutdown()
- func (r *Subscriber) Subscribe() (<-chan *types.Record, <-chan error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DynamoService ¶
type DynamoService interface {
DescribeTable(ctx context.Context, params *dynamodb.DescribeTableInput, optFns ...func(*dynamodb.Options)) (*dynamodb.DescribeTableOutput, error)
}
type ShardSequence ¶
type StreamService ¶
type StreamService interface { DescribeStream(ctx context.Context, params *dynamodbstreams.DescribeStreamInput, optFns ...func(*dynamodbstreams.Options)) (*dynamodbstreams.DescribeStreamOutput, error) GetShardIterator(ctx context.Context, params *dynamodbstreams.GetShardIteratorInput, optFns ...func(*dynamodbstreams.Options)) (*dynamodbstreams.GetShardIteratorOutput, error) GetRecords(ctx context.Context, params *dynamodbstreams.GetRecordsInput, optFns ...func(*dynamodbstreams.Options)) (*dynamodbstreams.GetRecordsOutput, error) }
type Subscriber ¶
type Subscriber struct {
// contains filtered or unexported fields
}
func NewSubscriber ¶
func NewSubscriber( dynamoSvc DynamoService, streamSvc StreamService, table string, ) *Subscriber
func (*Subscriber) SetErrorBufferSize ¶
func (r *Subscriber) SetErrorBufferSize(bufferSize int32)
func (*Subscriber) SetMaximumRecords ¶
func (r *Subscriber) SetMaximumRecords(maximumRecords int32)
func (*Subscriber) SetRecordBufferSize ¶
func (r *Subscriber) SetRecordBufferSize(bufferSize int32)
func (*Subscriber) SetShardIteratorInitialInterval ¶
func (r *Subscriber) SetShardIteratorInitialInterval(shardIteratorInitialInterval time.Duration)
func (*Subscriber) SetShardIteratorMaxInterval ¶
func (r *Subscriber) SetShardIteratorMaxInterval(shardIteratorMaxInterval time.Duration)
func (*Subscriber) SetShardIteratorType ¶
func (r *Subscriber) SetShardIteratorType(shardIteratorType types.ShardIteratorType)
func (*Subscriber) SetShardProcessQueueSize ¶
func (r *Subscriber) SetShardProcessQueueSize(shardProcessQueueSize int)
func (*Subscriber) SetShardProcessWorkers ¶
func (r *Subscriber) SetShardProcessWorkers(shardProcessWorkers int)
func (*Subscriber) SetShardSequenceIteratorType ¶
func (r *Subscriber) SetShardSequenceIteratorType(shardSequenceIteratorType types.ShardIteratorType)
func (*Subscriber) SetShardSequences ¶
func (r *Subscriber) SetShardSequences(shardSequences []*ShardSequence)
func (*Subscriber) SetShardUpdateInterval ¶
func (r *Subscriber) SetShardUpdateInterval(shardUpdateInterval time.Duration)
func (*Subscriber) ShardSequences ¶
func (r *Subscriber) ShardSequences() []*ShardSequence
func (*Subscriber) Shutdown ¶
func (r *Subscriber) Shutdown()
Click to show internal directories.
Click to hide internal directories.