// NewMsg returns a new Msg with the ID extracted
// from the original document
NewMsg returns a new Msg with the ID extracted
from the original document
// NewMsg returns a new Msg with the ID extracted // from the original document
func NewMsg(op OpType, data interface{}, namespace string) *Msg {
	m := &Msg{
		Timestamp: time.Now().Unix(),
		Op:        op,
		Data:      data,
		Namespace: namespace,
	}
	return m
}
func NewMsg ( op OpType , data interface { } , namespace string ) * Msg { m := & Msg { Timestamp : time . Now ( ) . Unix ( ) , Op : op , Data : data , Namespace : namespace , } return m }
NewMsg returns a new Msg with the ID extracted
from the original document
NewMsg returns a new Msg with the ID extracted from the original document