(ctx context.Context)
| 138 | } |
| 139 | |
| 140 | func getServerIndex(ctx context.Context) (int, error) { |
| 141 | si := ctx.Value(ContextServerIndex) |
| 142 | if si != nil { |
| 143 | if index, ok := si.(int); ok { |
| 144 | return index, nil |
| 145 | } |
| 146 | return 0, reportError("Invalid type %T should be int", si) |
| 147 | } |
| 148 | return 0, nil |
| 149 | } |
| 150 | |
| 151 | func getServerOperationIndex(ctx context.Context, endpoint string) (int, error) { |
| 152 | osi := ctx.Value(ContextOperationServerIndices) |
no test coverage detected