aboutsummaryrefslogtreecommitdiff
path: root/modules/workers/worker.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/workers/worker.go')
-rw-r--r--modules/workers/worker.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/workers/worker.go b/modules/workers/worker.go
new file mode 100644
index 00000000..97535b2b
--- /dev/null
+++ b/modules/workers/worker.go
@@ -0,0 +1,10 @@
+// Copyright 2014 The Gogs Authors. All rights reserved.
+// Use of this source code is governed by a MIT-style
+// license that can be found in the LICENSE file.
+
+package workers
+
+// Work represents a background work interface of any kind.
+type Work interface {
+ Do() error
+}