Server is the scheduler server.
| 57 | |
| 58 | // Server is the scheduler server. |
| 59 | type Server struct { |
| 60 | // Server configuration. |
| 61 | config *config.Config |
| 62 | |
| 63 | // GRPC server. |
| 64 | grpcServer *grpc.Server |
| 65 | |
| 66 | // Metrics server. |
| 67 | metricsServer *http.Server |
| 68 | |
| 69 | // Manager client. |
| 70 | managerClient managerclient.V2 |
| 71 | |
| 72 | // Resource interface. |
| 73 | resource standard.Resource |
| 74 | |
| 75 | // Persistent resource interface. |
| 76 | persistentResource persistent.Resource |
| 77 | |
| 78 | // Persistent cache resource interface. |
| 79 | persistentCacheResource persistentcache.Resource |
| 80 | |
| 81 | // Dynamic config. |
| 82 | dynconfig config.DynconfigInterface |
| 83 | |
| 84 | // Async job. |
| 85 | job job.Job |
| 86 | |
| 87 | // Announcer interface. |
| 88 | announcer announcer.Announcer |
| 89 | |
| 90 | // GC service. |
| 91 | gc gc.GC |
| 92 | } |
| 93 | |
| 94 | // New creates a new scheduler server. |
| 95 | func New(ctx context.Context, cfg *config.Config, d dfpath.Dfpath) (*Server, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected