Server is the gRPC server for the Scheduler service.
| 90 | |
| 91 | // Server is the gRPC server for the Scheduler service. |
| 92 | type Server struct { |
| 93 | listenAddress string |
| 94 | port int |
| 95 | |
| 96 | sec security.Handler |
| 97 | serializer *serialize.Serializer |
| 98 | cron cron.Interface |
| 99 | etcd etcd.Interface |
| 100 | controller *controller.Controller |
| 101 | |
| 102 | hzAPIServer healthz.Target |
| 103 | |
| 104 | running atomic.Bool |
| 105 | |
| 106 | closeCh chan struct{} |
| 107 | } |
| 108 | |
| 109 | func New(ctx context.Context, opts Options) (*Server, error) { |
| 110 | var broadcastAddr string |
nothing calls this directly
no outgoing calls
no test coverage detected