// Context is a wrapper around context.Context and contains the current pid for this context
typeContextstruct{
context.Context
pidIDType
}
// GetPID returns the PID for this context
func(c*Context)GetPID()IDType{
returnc.pid
}
// GetParent returns the parent process context (if any)
func(c*Context)GetParent()*Context{
returnGetContext(c.Context)
}
// Value is part of the interface for context.Context. We mostly defer to the internal context - but we return this in response to the ProcessContextKey