(ctx context.Context)
| 32 | } |
| 33 | |
| 34 | func GetConnData(ctx context.Context) *connData { |
| 35 | if ctx == nil { |
| 36 | return nil |
| 37 | } |
| 38 | dataPtr := ctx.Value(connContextKey) |
| 39 | if dataPtr == nil { |
| 40 | return nil |
| 41 | } |
| 42 | return dataPtr.(*connData) |
| 43 | } |
| 44 | |
| 45 | type CommandSpec struct { |
| 46 | Cmd string |
no test coverage detected