[feat] 新增 ErrFuncNotImplemented
This commit is contained in:
@@ -57,20 +57,20 @@ type MqttHandle struct {
|
||||
Controller
|
||||
}
|
||||
|
||||
func (this MqttHandle) OnSubscribed(g GlobalParams, topic string) error {
|
||||
return nil
|
||||
func (this *MqttHandle) OnSubscribed(g GlobalParams, topic string) error {
|
||||
return ErrFuncNotImplemented
|
||||
}
|
||||
|
||||
func (this MqttHandle) OnUnsubscribed(g GlobalParams, topic string) error {
|
||||
return nil
|
||||
return ErrFuncNotImplemented
|
||||
}
|
||||
|
||||
func (this MqttHandle) OnMessage(g GlobalParams, topic string, retain bool, qos byte) error {
|
||||
return nil
|
||||
return ErrFuncNotImplemented
|
||||
}
|
||||
|
||||
func (this MqttHandle) OnMessageDropped(g GlobalParams, topic string, retain bool, qos byte) error {
|
||||
return nil
|
||||
return ErrFuncNotImplemented
|
||||
}
|
||||
|
||||
func NewMqttController(container *do.Injector) Mqtt {
|
||||
|
||||
Reference in New Issue
Block a user