Minor features and improvements release.
-
New Features
- Support Metadata in struct tags to fetch TTL and Generation via
GetObject
.
Notice: Metadata attributes in an struct are considered transient, and won't be persisted.
Example:
type SomeStruct struct { TTL uint32 `asm:"ttl"` // record time-to-live in seconds Gen uint32 `asm:"gen"` // record generation A int Self *SomeStruct } key, _ := as.NewKey("ns", "set", value) err := client.PutObject(nil, key, obj) // handle error here rObj := &OtherStruct{} err = client.GetObject(nil, key, rObj)
- GeoJSON support in Lists and Maps
- Support Metadata in struct tags to fetch TTL and Generation via
-
Improvements
- Use
ClientPolicy.timeout
for connection timeout when refreshing nodes - Added new server error codes
- Protect RNG pool against low-precision clocks during init
- Better error message distingushing between timeout because of reaching deadline and exceeding maximum retries
- Use
-
Fixes
- Fixed object mapping cache for anonymous structs. PR #115, thanks to Moshe Revah
- Fixed an issue where
Execute()
method wasn't observing theSendKey
flag in Policy.