Documentation
¶
Overview ¶
internal/domain/web.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidFortName ¶
ValidFortName returns true if name is a valid fort identifier. Lowercase alphanumeric + hyphens, no leading/trailing hyphens.
Types ¶
type ConfigService ¶
type ConfigService struct {
URL string
}
ConfigService is what comes from the fort config file — just a URL. All configured services are considered enabled. To disable a service, remove it from the config.
type Fort ¶
type Fort struct {
// Name is the fort identifier (e.g., "local", "acme-corp").
Name string
// Local controls how the proxy routes traffic.
// true = proxy directly to each service's URL.
// false = proxy through Gateway.
Local bool
// Gateway is the single origin URL for remote forts.
// Only used when Local is false.
Gateway string
// Services lists the backend services in this fort.
Services []ConfigService
}
Fort is a named collection of services. Users can belong to multiple forts and switch between them.
Click to show internal directories.
Click to hide internal directories.