(ctx context.Context, addr string, opts ...gwruntime.ServeMuxOption)
| 22 | ) |
| 23 | |
| 24 | func runGateway(ctx context.Context, addr string, opts ...gwruntime.ServeMuxOption) error { |
| 25 | return gateway.Run(ctx, gateway.Options{ |
| 26 | Addr: addr, |
| 27 | GRPCServer: gateway.Endpoint{ |
| 28 | Network: *network, |
| 29 | Addr: *endpoint, |
| 30 | }, |
| 31 | OpenAPIDir: *openAPIDir, |
| 32 | Mux: opts, |
| 33 | }) |
| 34 | } |
| 35 | |
| 36 | func waitForGateway(ctx context.Context, port uint16) error { |
| 37 | ch := time.After(10 * time.Second) |
no test coverage detected