Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MOSN 源码解析:变量机制 #23

Closed
rootsongjc opened this issue Feb 12, 2020 · 5 comments
Closed

MOSN 源码解析:变量机制 #23

rootsongjc opened this issue Feb 12, 2020 · 5 comments
Assignees
Labels

Comments

@rootsongjc
Copy link
Member

Reviewer: @neverhook

@GLYASAI
Copy link
Contributor

GLYASAI commented Feb 12, 2020

怎么去找 变量机制 的代码呢?

@neverhook
Copy link
Contributor

主体代码在 pkg/variable 包下面,具体变量的实现代码则分散在各个具体模块里面,例如 HTTP 协议变量在 pkg/stream/http/var.go 中定义;反向代理核心变量在 pkg/proxy/var.go 中定义

@GLYASAI
Copy link
Contributor

GLYASAI commented Feb 12, 2020

/assign

@rootsongjc
Copy link
Member Author

文章发布地址:https://mosn.io/zh/blog/2020/mosn-variable/

@xhhoho
Copy link

xhhoho commented Feb 20, 2020

写得很清楚,从代码层面把变量机制解释得非常透彻。
另外提一个小建议,在第一段引入变量机制是什么后,能否再从顶层和原理层,框架层把变量机制的实现描述一下,比如用请求流程图把一个变量从注册,到获取展示一下,代码无关的原理描述。这样子大家可以有一个总的认识,然后带着目的性去了解源码的实现。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants