lessmore/node/point.go
2018-11-04 16:11:37 +03:00

18 lines
306 B
Go

package node
import (
log "github.com/Sirupsen/logrus"
"github.com/idec-net/go-idec"
)
// PointMessage add point message into DB
func (es ESConf) PointMessage(req PointRequest) error {
msg, err := idec.ParsePointMessage(req.Tmsg)
if err != nil {
return err
}
log.Infof("%+v", msg)
return nil
}