Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //Version is the git version injected via build flags (see Makefile) Version string //Rev is the git rev injected via build flags (see Makefile) Rev string )
Functions ¶
This section is empty.
Types ¶
type AMQPConsumer ¶
type AMQPConsumer struct {
// contains filtered or unexported fields
}
AMQPConsumer pulls acssages from an AMQP queue and executes a callback for each
func NewAMQPConsumer ¶
func NewAMQPConsumer(amqpURI string, queueName string) (amqpConsumer *AMQPConsumer, err error)
NewAMQPConsumer create a new AMQPConsumer, connect to an AMQP service, and start consuming from the queue
func (*AMQPConsumer) Close ¶
func (ac *AMQPConsumer) Close()
Close close connections to AMQP service
type DeliveryStore ¶
type DeliveryStore struct {
// contains filtered or unexported fields
}
DeliveryStore represents a backing database to insert the AMQP messages into
func NewDeliveryStore ¶
func NewDeliveryStore(databaseDriver string, databaseURI string, table string) (deliveryStore *DeliveryStore, err error)
NewDeliveryStore open a connection to the given database and initialize the schema
func (*DeliveryStore) Close ¶
func (ds *DeliveryStore) Close()
Close closes the connection to the database
Click to show internal directories.
Click to hide internal directories.