doc(entrypoint): escape [] in mermaid

This commit is contained in:
yusing
2026-02-26 15:36:50 +08:00
parent 1bd8b5a696
commit d5406fb039

View File

@@ -122,9 +122,9 @@ classDiagram
+accessLogger AccessLogger +accessLogger AccessLogger
+findRouteFunc findRouteFunc +findRouteFunc findRouteFunc
+shortLinkMatcher *ShortLinkMatcher +shortLinkMatcher *ShortLinkMatcher
+streamRoutes *pool.Pool[types.StreamRoute] +streamRoutes *pool.Pool\[types.StreamRoute\]
+excludedRoutes *pool.Pool[types.Route] +excludedRoutes *pool.Pool\[types.Route\]
+servers *xsync.Map[string, *httpServer] +servers *xsync.Map\[string, *httpServer\]
+SupportProxyProtocol() bool +SupportProxyProtocol() bool
+StartAddRoute(r) error +StartAddRoute(r) error
+IterRoutes(yield) +IterRoutes(yield)
@@ -132,7 +132,7 @@ classDiagram
} }
class httpServer { class httpServer {
+routes *pool.Pool[types.HTTPRoute] +routes *pool.Pool\[types.HTTPRoute\]
+ServeHTTP(w, r) +ServeHTTP(w, r)
+AddRoute(route) +AddRoute(route)
+DelRoute(route) +DelRoute(route)
@@ -154,8 +154,8 @@ classDiagram
} }
class ShortLinkMatcher { class ShortLinkMatcher {
+fqdnRoutes *xsync.Map[string, string] +fqdnRoutes *xsync.Map\[string, string\]
+subdomainRoutes *xsync.Map[string, struct{}] +subdomainRoutes *xsync.Map\[string, emptyStruct\]
+ServeHTTP(w, r) +ServeHTTP(w, r)
+AddRoute(alias) +AddRoute(alias)
+DelRoute(alias) +DelRoute(alias)