Initial cloud-services repo - gateway service + pkg modules
This commit is contained in:
10
pkg/kafka/unhandled_msg.go
Normal file
10
pkg/kafka/unhandled_msg.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package kafka
|
||||
|
||||
import (
|
||||
"fiskerinc.com/modules/common"
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
var ErrUnhandledMessage = func(device common.Device, id string, handler string, msg interface{}) error {
|
||||
return errors.Errorf("unhandled message, device: %v, id: %s handler: %s, payload: %v", device, id, handler, msg)
|
||||
}
|
||||
Reference in New Issue
Block a user