feat: add healthcheck database section (#8060)

This commit is contained in:
Colin Adler
2023-06-20 10:13:22 -05:00
committed by GitHub
parent 2db4488337
commit 823127e761
11 changed files with 284 additions and 12 deletions

View File

@ -262,6 +262,7 @@ func New(options *Options) *API {
if options.HealthcheckFunc == nil {
options.HealthcheckFunc = func(ctx context.Context, apiKey string) *healthcheck.Report {
return healthcheck.Run(ctx, &healthcheck.ReportOptions{
DB: options.Database,
AccessURL: options.AccessURL,
DERPMap: options.DERPMap.Clone(),
APIKey: apiKey,