summaryrefslogtreecommitdiffstats
path: root/modules/workers
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-05-08 19:17:43 -0400
committerUnknown <joe2010xtmf@163.com>2014-05-08 19:17:43 -0400
commit914ffa496f8e8e9948ca8c5596da6b0d3c17555d (patch)
tree5f2fc88ee51db05013f968031bc8340f4867f48d /modules/workers
parenta742ee543ef3faf6374625c9c6d065c0a46b5549 (diff)
downloadgitea-914ffa496f8e8e9948ca8c5596da6b0d3c17555d.tar.gz
gitea-914ffa496f8e8e9948ca8c5596da6b0d3c17555d.zip
Show private repository activities in dashboard if has access
Diffstat (limited to 'modules/workers')
-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 0000000000..97535b2b4d
--- /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
+}