mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-03-18 13:01:01 -05:00
20 lines
443 B
Go
20 lines
443 B
Go
package flagset
|
|
|
|
import (
|
|
"github.com/micro/cli/v2"
|
|
"github.com/owncloud/ocis-reva/pkg/config"
|
|
)
|
|
|
|
// HealthWithConfig applies cfg to the health flagset
|
|
func HealthWithConfig(cfg *config.Config) []cli.Flag {
|
|
return []cli.Flag{
|
|
&cli.StringFlag{
|
|
Name: "debug-addr",
|
|
Value: "0.0.0.0:9109",
|
|
Usage: "Address to debug endpoint",
|
|
EnvVars: []string{"REVA_DEBUG_ADDR"},
|
|
Destination: &cfg.Debug.Addr,
|
|
},
|
|
}
|
|
}
|