MCPcopy Create free account
hub / github.com/Azure/peerd / ServerCmd

Struct ServerCmd

cmd/proxy/cmd.go:5–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3package main
4
5type ServerCmd struct {
6 HttpAddr string `arg:"--http-addr" help:"address of the server" default:"127.0.0.1:5000"`
7 HttpsAddr string `arg:"--https-addr" help:"address of the server" default:"0.0.0.0:5001"`
8 RouterAddr string `arg:"--router-addr" help:"address of the router (p2p)" default:"0.0.0.0:5003"`
9 PromAddr string `arg:"--prom-addr" help:"address of prometheus metrics endpoint" default:"0.0.0.0:5004"`
10 PrefetchWorkers int `arg:"--prefetch-workers" help:"number of workers to prefetch content" default:"50"`
11
12 // Mirror configuration.
13 Hosts []string `arg:"--hosts" help:"list of hosts to mirror"`
14 AddMirrorConfiguration bool `arg:"--add-mirror-configuration" help:"add mirror configuration to containerd host configuration" default:"false"`
15 Mirrors []string `arg:"--mirrors" help:"mirror URLs"`
16 ContainerdHostsConfigPath string `arg:"--containerd-hosts-config-path" help:"containerd hosts configuration path" default:"/etc/containerd/certs.d"`
17}
18
19type Arguments struct {
20 Server *ServerCmd `arg:"subcommand:run" help:"run the server"`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected