Version 0.8.0
Pre-release
Pre-release
This release changes the journal.Store
and journal.Journal
interfaces to be generic types, parameterized over records of type T
, and the kv.Store
and kv.Keyspace
to be parameterized over types K
and V
, thereby making the typedjournal
and typedkv
packages obsolete.
This eliminates the need for duplicating all of the generic algorithms (such as Search()
, LastRecord()
, etc) for both binary and typed implementations.
Added
- Added
journal.BinaryStore
,BinaryJournal
andBinaryRangeFunc
aliases, equivalent to prior (non-generic) definitions ofStore
,Journal
andRangeFunc
, respectively. - Added
kv.BinaryStore
,BinaryKeyspace
andBinaryRangeFunc
aliases, equivalent to prior (non-generic) definitions ofStore
,Keyspace
andRangeFunc
, respectively. - Added
marshaler.ProtocolBuffers
marshaler. - Added
marshaler.Bool
marshaler. - Added
journal.NewMarshalingStore()
andkv.NewMarshalingStore()
, which wrap binary implementations with amarshaler.Marshaler
, serving as a replacement for thetypedjournal
andtypedkv
packages, respectively. - Added
journal.Scan()
andScanFromSearchResult()
Changed
- [BC] Changed
journal
andkv
interfaces to be generic. - [BC] Moved
typedmarshaler
package tomarshaler
at the root of the module.
Removed
- [BC] Removed
typedjournal
,typedkv
andtypedmarshaler
packages.