This directory contains standalone examples demonstrating the use of buckets for persistence in a web server context.
-
post.go
- sets up an http server that stores raw json payloads sent via http POST requests. -
roundtrip.go
- extends the previous example by appropriately handling http requests sent to the same route with different methods (GET or POST). -
prefix.go
- extends the previous example to demonstrate prefix scanning. -
range.go
- extends the previous example to demonstrate range scanning. -
items.go
- variant of the previous example, demonstrating another way to get items with a given key prefix: viz., usingBucket.PrefixItems
andBucket.RangeItems
.