consumer

package
v0.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStorageDynamoDB added in v0.6.0

func NewStorageDynamoDB(client dynamodbiface.DynamoDBAPI, table string) *storageDynamoDBImpl

func NewStorageInMemory added in v0.6.0

func NewStorageInMemory() *storageInMemoryImpl

Types

type Consumer

type Consumer interface {
	Start()
}

Consumer is the component that subscribes to the broker and interacts with Archivematica.

type ConsumerImpl

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

ConsumerImpl is an implementation of Consumer.

func MakeConsumer

func MakeConsumer(
	ctx context.Context,
	logger log.FieldLogger,
	broker *broker.Broker,
	amc *amclient.Client,
	s3 s3.ObjectStorage,
	storage Storage) *ConsumerImpl

MakeConsumer returns a new ConsumerImpl which implements Consumer

func (*ConsumerImpl) Start

func (c *ConsumerImpl) Start()

Start implements Consumer

type Storage added in v0.6.0

type Storage interface {
	AssociateResearchObject(ctx context.Context, objectUUID string, transferID string) error
	GetResearchObject(ctx context.Context, objectUUID string) (string, error)
}

Jump to

Keyboard shortcuts

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