1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
10 "git.arvados.org/arvados.git/lib/cmd"
11 "git.arvados.org/arvados.git/lib/service"
12 "git.arvados.org/arvados.git/sdk/go/arvados"
13 "github.com/prometheus/client_golang/prometheus"
16 // Command starts a controller service. See cmd/arvados-server/cmd.go
17 var Command cmd.Handler = service.Command(arvados.ServiceNameController, newHandler)
19 func newHandler(ctx context.Context, cluster *arvados.Cluster, _ string, _ *prometheus.Registry) service.Handler {
20 return &Handler{Cluster: cluster, BackgroundContext: ctx}