Skip to content

Go lang msgpack batch data library

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE
MIT
COPYRIGHT
Notifications You must be signed in to change notification settings

miolini/msgbatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MsgBatch

Go lang msgpack batch data library for compress efficient processing.

Examples:

Encode:

 batch := msgbatch.Batch{}
 batch.Add(map[string]string{"url":"http://google.com/", "ts":"123"})
 batch.Add(map[string]string{"url":"http://google.com/", "id":"908908"})
 batch.Add(map[string]string{"url":"http://google.com/", "ts":"43556478346", "id": "6546"})
 batch.Add(map[string]string{"url":"http://google.com/"})
 dataBytes, err := batch.Encode()
 log.Printf("data len %d, err %s", len(dataBytes), err) 

Decode:

 batch, err = msgbatch.Decode(dataBytes)
 log.Printf("batch %v", batch.GetValues())

About

Go lang msgpack batch data library

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE
MIT
COPYRIGHT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages