mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 18:51:59 +00:00
Part of #56846 - initializes a `lib/managedservicesplatform` package that can be imported from other repositories. See `lib/managedservicesplatform/example` for details. It doesn't do much, but emulates Sourcegraph's internal service stuff somewhat, just stripped down significantly (we only need to support a single service per binary), and using generics. To support the new Accounts service, I've also moved parts of background routine management into `lib/background`, aliased from the original `internal/goroutine` package to maintain compatibility - the utilities here are a bit hefty to copy-paste, and I think it's useful to share this. ## Test plan ``` PORT=8080 VARIABLE=24 go run ./managedservicesplatform/example ``` ``` curl localhost:8080 ``` |
||
|---|---|---|
| .. | ||
| recorder | ||
| background.go | ||
| BUILD.bazel | ||
| CODENOTIFY | ||
| example_test.go | ||
| goroutine.go | ||
| mocks_test.go | ||
| periodic_test.go | ||
| periodic.go | ||