saxon
ce92dd37d8
stream/mts/meta: added Keys() func and appropriate testing
...
A meta.Keys(d []byte) []string, error func has been added that will extract the keys of a metadata string. A test has also been added
to test that this function performs as expected.
2019-02-10 08:58:38 +10:30
saxon
cc0becf58c
stream/mts/meta: simplified meta checking for Get and GetAll
2019-02-09 22:25:36 +10:30
saxon
50575270b9
stream/mts/meta: checking if given slice is nil or empty and returning error if either. Also updated some func comments
2019-02-09 21:35:35 +10:30
saxon
e796a5a3b7
stream/mts/meta: updating function comments and test function names according to Extract->Get and ExtractAll->GetAll change
2019-02-09 12:16:57 +10:30
saxon
f9d8accdae
stream/mts/meta/meta.go: Extract and ExtractAll to Get and GetAll
2019-02-09 12:14:32 +10:30
saxon
fadc1fed1b
stream/mts/meta: added ExtractAll func and added testing utilities
2019-02-08 21:31:00 +10:30
saxon
db3b34c10f
stream/mts/meta: meta.Delete no longer returns error - updated code accordingly
2019-02-08 10:56:19 +10:30
saxon
a94bdbfe47
stream/mts/meta: meta.Get now returns ok bool rather than error - updated usage accordingly
2019-02-08 10:25:57 +10:30
saxon
b8fc6d7e99
stream/mts/meta/meta.go: ReadFrom to Extract
2019-02-07 14:50:31 +10:30
saxon
57d1dba2fb
stream/mts/meta/meta.go: updated meta.NewWith so that it just uses meta.New, and now ti can add an abitrary number of things to the map. It also overwrites keys that have been repeated
2019-02-06 12:16:44 +10:30
saxon
2b7ab27763
cmd/revid-cli & stream/mts/meta: added meta.NewWith function that creates a new meta.Data and adds an initial entry. Using meta.NewWith in revid-cli to initialise mts' global meta.Data with some preamble data.
2019-02-06 10:19:12 +10:30
saxon
d523677627
stream/mts/meta/meta.go: renamed Metadata struct to Data
2019-02-06 09:59:55 +10:30
saxon
89b05b3cb6
stream/mts/meta/meta.go: using copy instead of append to remove key from order slice in Meta.Delete()
2019-02-05 23:29:07 +10:30
saxon
cf73c853b0
stream/mts/meta/meta.go: using defer for m.mu.Unlock() Meta.Add()
2019-02-05 23:25:46 +10:30
saxon
3364b4ea6f
stream/mts/meta.go: avoiding adding same key to order slice
2019-02-05 13:11:11 +10:30
saxon
834625a9f7
stream/mts/meta: using order slice so that encoded order reamins consistent with order that we added metadata. And also now using binary.BigEndian.PutUint16() to encode len into metdata rather than doing ugly byte manipulation
2019-02-05 12:55:32 +10:30
saxon
ad25785b77
stream/mts/meta/meta_test.go: improved ReadFrom by checking for valid header
2019-02-04 22:48:51 +10:30
saxon
953d363b3a
stream/mts/meta.go: improved const and function commenting
2019-02-04 22:38:11 +10:30
saxon
1f1546a284
revid: updated code in senders.go to work with meta changes
2019-01-31 21:30:08 +10:30
saxon
10343375a3
stream/mts: moved meta.go and meta_test.go into meta package
2019-01-31 21:23:06 +10:30