refactor: eliminate internal/domain package, colocate types with implementations

Move ImageID and ContainerID into internal/docker/types.go (where they're
primarily used) and UnparsedURL into internal/service/webhook/types.go.

This follows the Go convention of defining types alongside the code that
uses them rather than in a separate 'domain' package.
This commit is contained in:
user
2026-02-23 11:46:44 -08:00
parent 5c43d5b6f8
commit 721f401005
2 changed files with 14 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
package webhook
// UnparsedURL is a URL stored as a plain string without parsing.
// Use this instead of string when the value is known to be a URL
// but should not be parsed into a net/url.URL (e.g. webhook URLs,
// compare URLs from external payloads).
type UnparsedURL string