add script triggers.
This commit is contained in:
+1
-1
@@ -10,5 +10,5 @@ type Log struct {
|
||||
}
|
||||
|
||||
func (l Log) EventDescription() string {
|
||||
return fmt.Sprintf("LOG(id:%s level:%s code:%s :: %s)", l.ID, l.Level, l.Code, l.Message)
|
||||
return fmt.Sprintf("Log(id:%s level:%s code:%s :: %s)", l.ID, l.Level, l.Code, l.Message)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
package events
|
||||
|
||||
import "fmt"
|
||||
|
||||
type Time struct {
|
||||
Hour int
|
||||
Minute int
|
||||
}
|
||||
|
||||
func (t Time) EventDescription() string {
|
||||
return fmt.Sprintf("Time(%02d:%02d)", t.Hour, t.Minute)
|
||||
}
|
||||
|
||||
func (t Time) VerboseKey() string {
|
||||
return "time"
|
||||
}
|
||||
Reference in New Issue
Block a user