INIT
This commit is contained in:
parent
d9a1837f3b
commit
ebd2f05ae2
69 changed files with 2335 additions and 451 deletions
28
backend.old/msgmode.go
Normal file
28
backend.old/msgmode.go
Normal file
|
@ -0,0 +1,28 @@
|
|||
package main
|
||||
|
||||
type Mode int
|
||||
|
||||
const (
|
||||
Priority Mode = iota
|
||||
Start
|
||||
Stop
|
||||
Time
|
||||
UpdateHeat
|
||||
)
|
||||
|
||||
func (t Mode) String() string {
|
||||
switch t {
|
||||
case Priority:
|
||||
return "priority"
|
||||
case Stop:
|
||||
return "stop"
|
||||
case Time:
|
||||
return "time"
|
||||
case Start:
|
||||
return "start"
|
||||
case UpdateHeat:
|
||||
return "updateHeat"
|
||||
}
|
||||
|
||||
return "priority"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue