summaryrefslogtreecommitdiff
path: root/internal/server/background/commands.go
diff options
context:
space:
mode:
authorPaul Bütow <pbuetow@mimecast.com>2020-02-22 09:51:55 +0000
committerPaul Bütow <pbuetow@mimecast.com>2020-02-22 09:51:55 +0000
commit7b400fdc922599bdd6f6c6d6c1dc4a664f104365 (patch)
tree84d26907fbe51f827447cc82a4b9c642c91847f5 /internal/server/background/commands.go
parent5122df790b77fb915c910e57de260e6ed0563af7 (diff)
background "class" works
Diffstat (limited to 'internal/server/background/commands.go')
-rw-r--r--internal/server/background/commands.go28
1 files changed, 0 insertions, 28 deletions
diff --git a/internal/server/background/commands.go b/internal/server/background/commands.go
deleted file mode 100644
index f789150..0000000
--- a/internal/server/background/commands.go
+++ /dev/null
@@ -1,28 +0,0 @@
-package background
-
-import (
- "context"
- "sync"
-)
-
-type command struct {
- cancel context.CancelFunc
- done chan struct{}
-}
-
-type Commands struct {
- mutex sync.Mutex
- commands map[string]command
-}
-
-func NewCommands() *Commands {
- return &Commands{
- commands: make(map[string]command),
- }
-}
-
-func (b Commands) Add(argc int, args []string, cancel context.CancelFunc, done <-chan struct{}) {
-}
-
-func (h Commands) Stop(argc int, args []string) {
-}