{"modulePath":"github.com/cloudfoundry/gorouter","version":"v0.0.0-20250429140807-a602bb6a6243","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package stats\n\n## Constants\n\n```go\nconst (\n\tActiveAppsTrimInterval  = 1 * time.Minute\n\tActiveAppsEntryLifetime = 30 * time.Minute\n)\n```\n\n```go\nconst (\n\tTopAppsTrimInterval  = 10 * time.Second\n\tTopAppsEntryLifetime = 60 * time.Second\n)\n```\n\n## Types\n\n```go\ntype ActiveApps struct {\n\tsync.Mutex\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewActiveApps() *ActiveApps\n```\n\n```go\nfunc (x *ActiveApps) ActiveSince(y time.Time) []string\n```\n\n```go\nfunc (x *ActiveApps) Mark(ApplicationId string, z time.Time)\n```\n\n```go\nfunc (x *ActiveApps) Trim(y time.Time)\n```\n\n```go\ntype TopApps struct {\n\tsync.Mutex\n\n\t*time.Ticker\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc NewTopApps() *TopApps\n```\n\n```go\nfunc (x *TopApps) Mark(ApplicationId string, z time.Time)\n```\n\n```go\nfunc (x *TopApps) TopSince(y time.Time, n int) []TopAppsTopEntry\n```\n\n```go\nfunc (x *TopApps) Trim(y time.Time)\n```\n\n```go\ntype TopAppsTopEntry struct {\n\tApplicationId string\n\tRequests      int64\n}\n```\n\n","path":"github.com/cloudfoundry/gorouter/stats","name":"stats","synopsis":"","isRedistributable":true}
