Documentation ¶
Index ¶
- type ExchangeRepository
- type InMemoryExchangeRepository
- func (r *InMemoryExchangeRepository) DeleteExchange(name string) (err errs.AppError)
- func (r *InMemoryExchangeRepository) FindExchanges() []*internal.Exchange
- func (r *InMemoryExchangeRepository) GetExchange(name string) (exchange *internal.Exchange, err errs.AppError)
- func (r *InMemoryExchangeRepository) StoreExchange(exchange *internal.Exchange)
- type InMemoryQueueRepository
- func (r *InMemoryQueueRepository) DeleteQueue(name string) (err errs.AppError)
- func (r *InMemoryQueueRepository) FindQueues() []*internal.Queue
- func (r *InMemoryQueueRepository) GetQueue(name string) (queue *internal.Queue, err errs.AppError)
- func (r *InMemoryQueueRepository) StoreQueue(queue *internal.Queue)
- type QueueRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExchangeRepository ¶
type InMemoryExchangeRepository ¶
type InMemoryExchangeRepository struct { ExchangeList map[string]*internal.Exchange // contains filtered or unexported fields }
func NewInMemoryExchangeRepository ¶
func NewInMemoryExchangeRepository(exchangeList map[string]*internal.Exchange) *InMemoryExchangeRepository
func (*InMemoryExchangeRepository) DeleteExchange ¶
func (r *InMemoryExchangeRepository) DeleteExchange(name string) (err errs.AppError)
func (*InMemoryExchangeRepository) FindExchanges ¶
func (r *InMemoryExchangeRepository) FindExchanges() []*internal.Exchange
func (*InMemoryExchangeRepository) GetExchange ¶
func (*InMemoryExchangeRepository) StoreExchange ¶
func (r *InMemoryExchangeRepository) StoreExchange(exchange *internal.Exchange)
type InMemoryQueueRepository ¶
type InMemoryQueueRepository struct { QueueList map[string]*internal.Queue // contains filtered or unexported fields }
func NewInMemoryQueueRepository ¶
func NewInMemoryQueueRepository(queueList map[string]*internal.Queue) *InMemoryQueueRepository
func (*InMemoryQueueRepository) DeleteQueue ¶
func (r *InMemoryQueueRepository) DeleteQueue(name string) (err errs.AppError)
func (*InMemoryQueueRepository) FindQueues ¶
func (r *InMemoryQueueRepository) FindQueues() []*internal.Queue
func (*InMemoryQueueRepository) StoreQueue ¶
func (r *InMemoryQueueRepository) StoreQueue(queue *internal.Queue)
Click to show internal directories.
Click to hide internal directories.