14 lines
444 B
Go
14 lines
444 B
Go
package main
|
|
|
|
import "git.sr.ht/~michalr/go-satel"
|
|
|
|
func makeTestSatelEvent(changeType satel.ChangeType, index int, val bool) satel.Event {
|
|
return satel.Event{
|
|
BasicEvents: []satel.BasicEventElement{{Type: changeType, Index: index, Value: val}},
|
|
}
|
|
}
|
|
|
|
func makeGenericMessage(changeType satel.ChangeType, index int, val bool) GenericMessage {
|
|
return GenericMessage{[]satel.BasicEventElement{{Type: changeType, Index: index, Value: val}}}
|
|
}
|