dynamorecorder

package
v0.0.0-...-7ac24f4 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const EVENTSTORE = "portmanteaus_events"

Variables

This section is empty.

Functions

This section is empty.

Types

type DynamicRecorder

type DynamicRecorder interface {
	PutItem(*dynamodb.PutItemInput) (*dynamodb.PutItemOutput, error)
}

DynamicRecorder interfaces with dynamodb, encapsulating all necessary writing functionality

type Recorder

type Recorder struct {
	// contains filtered or unexported fields
}

func NewRecorder

func NewRecorder(db DynamicRecorder) *Recorder

func (*Recorder) Record

func (r *Recorder) Record(e interface{}) error

Record persists the input to the specified eventstore. NOTE if the Recorder possesed a large number of methods, they could be put in separate files NOTE that the return is discarded.

Jump to

Keyboard shortcuts

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