From 3f788856137365fc4ef03a43ccfd1368354a628e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paul=20B=C3=BCtow?= Date: Sat, 22 Feb 2020 09:51:55 +0000 Subject: background "class" works --- internal/server/background/commands.go | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 internal/server/background/commands.go (limited to 'internal/server/background/commands.go') 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) { -} -- cgit v1.2.3