Documentation
¶
Overview ¶
Package journey defines a context type, which carries information about a specific inbound request. It is created when it hits the first service and it is propagated across all services.
It has been named journey instead of request, because a journey can result of multiple sub-requests. And also because it sounds nice, isn't it?
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalGob ¶ added in v1.3.0
MarshalGob marshals a context in gob
Types ¶
type Ctx ¶
type Ctx interface { ctx.Ctx UUID() string ShortID() string AppConfig() *config.Config BG(f func(c Ctx)) error BranchOff(t Type) Ctx Cancel() End() Store(key interface{}, v interface{}) Load(key interface{}) interface{} Delete(key interface{}) RangeValues(f func(key, value interface{}) bool) }
Ctx is the journey context interface
type KV ¶ added in v1.0.0
type KV struct { Map map[interface{}]interface{} // contains filtered or unexported fields }
KV is a serialisable key/value store TODO: Replace it with go 1.9 sync/map at some point
Click to show internal directories.
Click to hide internal directories.