Documentation
¶
Index ¶
- Variables
- func ByAlias(typeFilter ...route.RouteType) map[string]Route
- func Clear()
- func HealthInfo() map[string]*HealthInfoRaw
- func HealthMap() map[string]map[string]string
- func HomepageCategories() []string
- func HomepageConfig(categoryFilter, providerFilter string) homepage.Homepage
- func Iter(yield func(alias string, r Route) bool)
- func NumRoutes() int
- type HTTPRoute
- type HealthInfoRaw
- type ReverseProxyRoute
- type Route
- type StreamRoute
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HTTP = pool.New[HTTPRoute]("http_routes") Stream = pool.New[StreamRoute]("stream_routes") )
Functions ¶
func HealthInfo ¶ added in v0.11.0
func HealthInfo() map[string]*HealthInfoRaw
func HomepageCategories ¶ added in v0.11.0
func HomepageCategories() []string
func HomepageConfig ¶ added in v0.11.0
Types ¶
type HTTPRoute ¶ added in v0.11.0
func GetHTTPRouteOrExact ¶
type HealthInfoRaw ¶ added in v0.11.0
type HealthInfoRaw struct {
Status health.Status `json:"status"`
Latency time.Duration `json:"latency"`
}
func (*HealthInfoRaw) MarshalJSON ¶ added in v0.11.0
func (info *HealthInfoRaw) MarshalJSON() ([]byte, error)
func (*HealthInfoRaw) UnmarshalJSON ¶ added in v0.11.0
func (info *HealthInfoRaw) UnmarshalJSON(data []byte) error
type ReverseProxyRoute ¶ added in v0.11.0
type ReverseProxyRoute interface {
HTTPRoute
ReverseProxy() *reverseproxy.ReverseProxy
}
type Route ¶ added in v0.11.0
type Route interface {
task.TaskStarter
task.TaskFinisher
pool.Object
ProviderName() string
TargetURL() *net.URL
HealthMonitor() health.HealthMonitor
Reference() string
Started() bool
IdlewatcherConfig() *idlewatcher.Config
HealthCheckConfig() *health.HealthCheckConfig
LoadBalanceConfig() *loadbalance.Config
HomepageConfig() *homepage.ItemConfig
HomepageItem() *homepage.Item
ContainerInfo() *docker.Container
Agent() *agent.AgentConfig
IsDocker() bool
IsAgent() bool
UseLoadBalance() bool
UseIdleWatcher() bool
UseHealthCheck() bool
UseAccessLog() bool
}
type StreamRoute ¶ added in v0.11.0
Click to show internal directories.
Click to hide internal directories.