{"modulePath":"github.com/cloudfoundry/gorouter","version":"v0.0.0-20250429140807-a602bb6a6243","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package common\n\n## Constants\n\n```go\nconst RefreshInterval time.Duration = time.Second * 1\n```\n\n## Types\n\n```go\ntype ProcessStatus struct {\n\tsync.RWMutex\n\n\tCpuUsage float64\n\tMemRss   int64\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewProcessStatus() *ProcessStatus\n```\n\n```go\nfunc (p *ProcessStatus) StopUpdate()\n```\n\n```go\nfunc (p *ProcessStatus) Update()\n```\n\n```go\ntype RouterStart struct {\n\tId                               string   `json:\"id\"`\n\tHosts                            []string `json:\"hosts\"`\n\tMinimumRegisterIntervalInSeconds int      `json:\"minimumRegisterIntervalInSeconds\"`\n\tPruneThresholdInSeconds          int      `json:\"pruneThresholdInSeconds\"`\n}\n```\n\n```go\ntype VcapComponent struct {\n\tConfig     interface{}  `json:\"-\"`\n\tVarz       *health.Varz `json:\"-\"`\n\tHealth     http.Handler\n\tInfoRoutes map[string]json.Marshaler `json:\"-\"`\n\tLogger     *slog.Logger              `json:\"-\"`\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (c *VcapComponent) ListenAndServe() error\n```\n\n```go\nfunc (c *VcapComponent) Register(mbusClient *nats.Conn) error\n```\n\n```go\nfunc (c *VcapComponent) Start() error\n```\n\n```go\nfunc (c *VcapComponent) Stop() error\n```\n\n```go\nfunc (c *VcapComponent) UpdateVarz()\n```\n\n","path":"github.com/cloudfoundry/gorouter/common","name":"common","synopsis":"","isRedistributable":true}
