blob: 082548e8d67850debdaa2ccb6a451d6eccb88dbb (
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
|
/*
* @Author: EnderByEndera
* @Date: 2020-12-16 13:59:51
* @LastEditTime: 2021-01-06 09:58:52
* @LastEditors: Please set LastEditors
* @Description: Includes CommScore definition
* @FilePath: /commdetection/rules/commscore.go
*/
package rules
import (
"commdetection/model"
)
// InitCommScores initialize commscores from []Command
func InitCommScores(commands []model.Command) (commScores []model.CommScore) {
for _, command := range commands {
commScores = append(commScores, model.CommScore{
Command: command,
Score: 100,
})
}
return
}
|