提交origin2.0版本

This commit is contained in:
duanhf2012
2020-03-28 09:57:16 +08:00
parent 0d98f77d07
commit 84fb8ab36d
111 changed files with 3657 additions and 8382 deletions

View File

@@ -0,0 +1 @@
package processor

View File

@@ -0,0 +1,17 @@
package processor
type JsonProcessor struct {
//SetByteOrder(littleEndian bool)
//SetMsgLen(lenMsgLen int, minMsgLen uint32, maxMsgLen uint32)
}
func (slf *JsonProcessor) Unmarshal(data []byte) (interface{}, error) {
return nil,nil
}
func (slf *JsonProcessor) Marshal(msg interface{}) ([][]byte, error) {
return nil,nil
}

View File

@@ -0,0 +1 @@
package processor

View File

@@ -0,0 +1,11 @@
package processor
type IProcessor interface {
//SetByteOrder(littleEndian bool)
//SetMsgLen(lenMsgLen int, minMsgLen uint32, maxMsgLen uint32)
Unmarshal(data []byte) (interface{}, error)
// must goroutine safe
Marshal(msg interface{}) ([][]byte, error)
}

View File

@@ -0,0 +1 @@
package processor