-
Notifications
You must be signed in to change notification settings - Fork 0
/
processor_config.go
43 lines (38 loc) · 1.03 KB
/
processor_config.go
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package karma
// Command my own string type for commands (think of it as an enum)
type Command string
const (
help string = "help"
me string = "me"
status string = "status"
add string = "++"
sub string = "--"
top string = "top"
)
// Commands a set of the support commands by this processor
var Commands = map[string]struct{}{
help: struct{}{},
me: struct{}{},
status: struct{}{},
add: struct{}{},
sub: struct{}{},
top: struct{}{},
}
// ProcConfig processor config object to contain all of these customizations
// SingleLimit one time karma swings are capped at 5 (default)
// DailyLimit this is the default daily limit for giving/ taking karma
// used by top function as guard rails
// used by top function as guard rails
type ProcConfig struct {
SingleLimit int
DailyLimit int
TopUserDefault int
TopUserMax int
}
// DefaultConfig default settings for the Processor
var DefaultConfig ProcConfig = ProcConfig{
SingleLimit: 5,
DailyLimit: 25,
TopUserDefault: 3,
TopUserMax: 10,
}