mirror of
https://github.com/yusing/godoxy.git
synced 2026-03-17 23:03:49 +01:00
- Introduced `NewTestRoute` function to simplify route creation in benchmark tests. - Replaced direct route validation and starting with error handling using `require.NoError`. - Updated server retrieval to use `common.ProxyHTTPAddr` for consistency. - Improved logging for HTTP route addition errors in `AddRoute` method. * fix(tcp): wrap proxy proto listener before acl * refactor(entrypoint): propagate errors from route registration and stream serving * fix(docs): correct swagger and package README
16 lines
459 B
Go
16 lines
459 B
Go
package entrypoint
|
|
|
|
import (
|
|
"github.com/yusing/godoxy/internal/logging/accesslog"
|
|
"github.com/yusing/godoxy/internal/route/rules"
|
|
)
|
|
|
|
type Config struct {
|
|
SupportProxyProtocol bool `json:"support_proxy_protocol"`
|
|
Rules struct {
|
|
NotFound rules.Rules `json:"not_found"`
|
|
} `json:"rules"`
|
|
Middlewares []map[string]any `json:"middlewares"`
|
|
AccessLog *accesslog.RequestLoggerConfig `json:"access_log" validate:"omitempty"`
|
|
}
|