storage

package
v0.0.0-...-4a75ffe Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageQuery

type MessageQuery struct {
	Number     int64
	Page       int64
	MaxRetries int64
}

MessageQuery represents a query consult the information stored in mongo

type MessageStore

type MessageStore interface {
	Close() error
	Save(amqp.Delivery) error
	Retrieve(MessageQuery) ([]amqp.Delivery, error)
}

MessageStore are the actions that must be realized by any persistence mechanism

func CreateMongoStore

func CreateMongoStore(mongoURL, database string) (MessageStore, error)

CreateMongoStore creates a store providing a mongo url and a mongo database name

Jump to

Keyboard shortcuts

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