mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-09 18:23:57 +09:00
Queue: Add monitoring
This commit is contained in:
@ -48,6 +48,11 @@ type Shutdownable interface {
|
||||
Terminate()
|
||||
}
|
||||
|
||||
// Named represents a queue with a name
|
||||
type Named interface {
|
||||
Name() string
|
||||
}
|
||||
|
||||
// Queue defines an interface to save an issue indexer queue
|
||||
type Queue interface {
|
||||
Run(atShutdown, atTerminate func(context.Context, func()))
|
||||
|
Reference in New Issue
Block a user