~netlandish/gobwebs

ac18465de845ef457f4fa8680e559e1c0c5be53e — Peter Sanchez 2 years ago e526138
Adding work queues method
1 files changed, 5 insertions(+), 0 deletions(-)

M server/server.go
M server/server.go => server/server.go +5 -0
@@ 341,6 341,11 @@ func (s *Server) QueueTask(qname string, task *work.Task) error {
	return fmt.Errorf("No queue found with name '%s'", qname)
}

// WorkQueues returns the `queues` slice
func (s *Server) WorkQueues() []*work.Queue {
	return s.queues
}

// WithEmail sets the email ServiceQueue instance
func (s *Server) WithEmail(svc *email.ServiceQueue) *Server {
	s.Email = svc