repository

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueueNotFoundError

type QueueNotFoundError struct {
	QueueName string
}

QueueNotFoundError is an error returned when a non-existing queue is specifie as the destination of a routing.

func (*QueueNotFoundError) Error

func (qe *QueueNotFoundError) Error() string

type QueueRepository

type QueueRepository interface {
	Add(q *model.Queue) error
	FindAll() ([]model.Queue, error)
	FindByName(name string) (*model.Queue, error)
	DeleteByName(name string) error
	Revision() (uint64, error)
}

QueueRepository is an interface of a queue repository.

type Repositories

type Repositories struct {
	Queue   QueueRepository
	Routing RoutingRepository
}

Repositories contains a queue repository and a routing repository.

type RoutingRepository

type RoutingRepository interface {
	Add(jobCategory string, queueName string) error
	FindAll() ([]model.Routing, error)
	FindQueueNameByJobCategory(category string) string
	DeleteByJobCategory(category string) error
	Revision() (uint64, error)
	Reload() error
}

RoutingRepository is an interface of a routing repository.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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