Nugget post: Registering interfaces with Gin-gonic Sessions

When building a Gin-gonic based web application, you'll probably come across a situation where you'd like to store information about the request in a session - essentially anything that requires HTTP cookies. Gin+gonic provides the "sessions" middleware to address this: https://github.com/gin-contrib/sessions Gin middleware for session management with multi-backend support: - cookie-based - Redis - memcached … Continue reading Nugget post: Registering interfaces with Gin-gonic Sessions

Nugget Post: Finding Average length of field in ElasticSearch

It's sometimes useful to find the average length or size of a given field in Elasticsearch. It would help indicate the size taken up by a document, or help determine maximum lengths to be allowed and so on. Unfortunately this is not a visualization built into Kibana, however it is possible to define an aggregation … Continue reading Nugget Post: Finding Average length of field in ElasticSearch