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.

queue.go 322B

1234567891011121314
  1. // Copyright 2019 Gitea. 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 task
  5. import "code.gitea.io/gitea/models"
  6. // Queue defines an interface to run task queue
  7. type Queue interface {
  8. Run() error
  9. Push(*models.Task) error
  10. Stop()
  11. }