diff options
| author | Paul Bütow <pbuetow@mimecast.com> | 2020-02-22 09:51:55 +0000 |
|---|---|---|
| committer | Paul Bütow <pbuetow@mimecast.com> | 2020-02-22 09:51:55 +0000 |
| commit | 3f788856137365fc4ef03a43ccfd1368354a628e (patch) | |
| tree | 84d26907fbe51f827447cc82a4b9c642c91847f5 /internal/server/background/commands.go | |
| parent | aae4322686960abec1e489f82a4cd006d6b4bcd6 (diff) | |
background "class" works
Diffstat (limited to 'internal/server/background/commands.go')
| -rw-r--r-- | internal/server/background/commands.go | 28 |
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) { -} |
