shard_watcher

package
v0.0.0-...-2bcf1be Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2020 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RunInput

type RunInput struct {
	Context           context.Context
	ContextCancelFunc context.CancelFunc

	InputTableName       string
	OperationDescription string

	Client *dynamodbstreams.DynamoDBStreams
}

type Watcher

type Watcher struct {
	*RunInput

	ShardProcessor func(*shard_tree.Shard) error
	StreamARN      string
	// contains filtered or unexported fields
}

func New

func New(input *RunInput) *Watcher

New creates a new watcher

func (*Watcher) ActiveWorkerCount

func (w *Watcher) ActiveWorkerCount() int32

func (*Watcher) DispatchedCount

func (w *Watcher) DispatchedCount() int32

func (*Watcher) RunWorkers

func (w *Watcher) RunWorkers() error

func (*Watcher) Started

func (w *Watcher) Started() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL