refactor(site): use generated Healthcheck API entities (#10650)

This commit is contained in:
Marcin Tojek
2023-11-13 15:58:57 +01:00
committed by GitHub
parent b69c237b8a
commit fbd34139b5
5 changed files with 104 additions and 110 deletions

View File

@ -28,13 +28,13 @@ import (
var (
// baseDirs are the directories to introspect for types to generate.
baseDirs = [...]string{"./codersdk", "./coderd/healthcheck", "./coderd/healthcheck/derphealth"}
baseDirs = [...]string{"./codersdk", "./coderd/healthcheck"}
// externalTypes are types that are not in the baseDirs, but we want to
// support. These are usually types that are used in the baseDirs.
// Do not include things like "Database", as that would break the idea
// of splitting db and api types.
// Only include dirs that are client facing packages.
externalTypeDirs = [...]string{"./cli/clibase"}
externalTypeDirs = [...]string{"./cli/clibase", "./coderd/healthcheck/derphealth"}
indent = " "
)