You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
547 B

  1. // Copyright 2018 The Gitea Authors. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. package issues
  5. // Queue defines an interface to save an issue indexer queue
  6. type Queue interface {
  7. Run() error
  8. Push(*IndexerData) error
  9. }
  10. // DummyQueue represents an empty queue
  11. type DummyQueue struct {
  12. }
  13. // Run starts to run the queue
  14. func (b *DummyQueue) Run() error {
  15. return nil
  16. }
  17. // Push pushes data to indexer
  18. func (b *DummyQueue) Push(*IndexerData) error {
  19. return nil
  20. }