-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
1,491 additions
and
95 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
title: OpenWebUI | ||
--- | ||
|
||
# OpenWebUI | ||
|
||
- [open-webui](https://github.com/open-webui/open-webui) | ||
- MIT, Svelte, Python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
--- | ||
title: IoC | ||
--- | ||
|
||
# IoC | ||
|
||
- IoC - Inverson of Control - 控制反转 | ||
- DI - Dependency Injection - 依赖注入 | ||
- 构造函数 | ||
- Setter | ||
- Interface | ||
- Annotation | ||
- XML | ||
- Dependency Lookup - 依赖查找 | ||
|
||
--- | ||
|
||
- 提供上下文容器 - Container/ApplicationContext | ||
- 不管是否使用,应用都存在潜在的上下文 | ||
- 不使用容器,则可能是直接污染全局 或者 维护局部上下文 | ||
- 级联容器 - Parent/Child Container | ||
- 全局、请求、模块 | ||
- 动态装配 - Dynamic Assembly | ||
- 实现模块的动态加载、可替换、插件 | ||
- 生命周期管理 - Lifecycle | ||
- 避免循环依赖 - Circular Dependency | ||
|
||
--- | ||
|
||
- 大型一点的应用很难不使用 IoC | ||
|
||
|
||
--- | ||
|
||
- 好处 | ||
- 依赖管理 | ||
- 模块化 | ||
- 解耦 | ||
- 动态装配/插件 | ||
- 方便测试 | ||
|
||
--- | ||
|
||
- 后端 | ||
- JVM Spring, Guice, Dagger | ||
- Node Nest.js | ||
- Golang fix, wire, dig | ||
- 前端 | ||
- Angular | ||
- 内置 IoC | ||
- React | ||
- Context | ||
- Vue.js | ||
- vue3 - provide/inject | ||
- Inversify | ||
- Awilix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: RPC | ||
--- | ||
|
||
# RPC | ||
|
||
- RPC - Remote Procedure Call | ||
- 远程过程调用/远程方法调用 | ||
- 可以理解为 一种路由 | ||
- 有 Service & Method 概念 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
title: hyperf | ||
--- | ||
|
||
# hyperf | ||
|
||
```bash | ||
ls ./runtime/logs/hyperf-*.log | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.