Server session state design pattern

Hi all,

What support does golang have for the server session state design pattern ? What is the usual way to implement it ? Does the gorilla/mux have support for it ?

In a REST api, is using a context for each request, an implementation of this pattern, or something different (that would be more like a request session state) ?

Generally accepted pattern is to use middleware to add stuff to your request context like this:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.