kinesumeriface

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

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

Go to latest
Published: Sep 29, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ECrit  = "crit"
	EError = "error"
	EWarn  = "warn"
	EInfo  = "info"
	EDebug = "debug"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Checkpointer

type Checkpointer interface {
	DoneC() chan<- Record
	Begin() error
	End()
	GetStartSequence(shardID string) string
	Sync()
}

type Error

type Error interface {
	Severity() string
	Origin() error
	Error() string
}

type Kinesis

type Kinesis kinesisiface.KinesisAPI

type Kinesumer

type Kinesumer interface {
	Begin() (int, error)
	End()
	Records() <-chan Record
}

type Provisioner

type Provisioner interface {
	TryAcquire(shardID string) error
	Release(shardID string) error
	Heartbeat(shardID string) error
	TTL() time.Duration
}

type Record

type Record interface {
	Data() []byte
	PartitionKey() string
	SequenceNumber() string
	ShardId() string
	MillisBehindLatest() int64
	Done()
}

Jump to

Keyboard shortcuts

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