summaryrefslogtreecommitdiff
path: root/internal/server/background/commands.go
blob: f789150077ad129dfba6bb9cb4e7d9e97a5ebb8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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) {
}