From b477d12b38ee18b138dd2e5a6a208eb14e11f369 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Wed, 18 Oct 2023 16:52:57 +0900 Subject: [PATCH] updated vitess.md --- web-doc/vitess.md | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/web-doc/vitess.md b/web-doc/vitess.md index a2c8676..39408d9 100644 --- a/web-doc/vitess.md +++ b/web-doc/vitess.md @@ -1,6 +1,29 @@ # Vitess +```blockdiag +diagram login { + client [label = "Client"]; + + gw_sniproxy [label = "sniproxy"] + gw_nginx [label = "nginx"] + gw_redirect_pl [label = "redirect.pl"] + + client -> gw_sniproxy -> gw_nginx; + gw_nginx ->gw_redirect_pl; +} +``` + +```blockdiag +diagram get-page-uuid { + index [ label = "login/index.ant" ] + inc-main [ label = "modules/policy/inc-main.php" ] + sql [ label = "SELECT location.location_group_id, settings FROM ant_policies.location LEFT JOIN ant_policies.policy ON location.location_group_id = policy.location_group_id WHERE ppli =\"eth0\"" ] + + index -> inc-main -> sql; +} +``` + ```mermaid graph LR A --- B @@ -60,8 +83,8 @@ int main() { int x = 100, y = 200; int sum = calculate(add, x, y); int diff = calculate(subtract, x, y); - printf("Sum: %d\n", sum); - printf("Difference: %d\n", diff); + printf("Sum: %d\n", sum); + printf("Difference: %d\n", diff); return 0; } ```