replay

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package replay implements types and interfaces that describe the appication domain

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Archive

type Archive interface {
	// Scan the s3 archive and emit objects on the returned channel
	Scan() chan *Object
}

Archive is a consumer responsible for scanning an s3 message archive and returning a buffered stream of s3 objects

type Object

type Object struct {
	Data   []byte
	Object *s3.Object
}

Object is a wrapper around an s3 object that includes the downloaded object data

type Parser

type Parser interface {
	Parse(chan *Object, chan *kinesis.PutRecordsRequestEntry)
}

Parser is responsible for processing the stream of archived s3 messages and preparing them for replay

type Producer

type Producer interface {
	// Returns a channel that accepts kinesis messages to replay
	Stream() chan *kinesis.PutRecordsRequestEntry
	// Wait for producer to finish replaying messages
	Wait()
}

Producer is responsible for replaying processed messages to kinesis

Jump to

Keyboard shortcuts

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