| 47 | ) |
| 48 | |
| 49 | type Proxy struct { |
| 50 | schedulerv1pb.UnimplementedSchedulerServer |
| 51 | |
| 52 | sched *scheduler.Scheduler |
| 53 | |
| 54 | ports *ports.Ports |
| 55 | port int |
| 56 | listener net.Listener |
| 57 | grpcSrv *grpc.Server |
| 58 | upstream *grpc.ClientConn |
| 59 | client schedulerv1pb.SchedulerClient |
| 60 | |
| 61 | runOnce sync.Once |
| 62 | done chan struct{} |
| 63 | serveErr chan error |
| 64 | |
| 65 | mu sync.Mutex |
| 66 | armed map[string]armConfig |
| 67 | failures atomic.Int32 |
| 68 | } |
| 69 | |
| 70 | // armConfig captures the per-method failure injection state. |
| 71 | type armConfig struct { |
nothing calls this directly
no outgoing calls
no test coverage detected