Comments (4)
当前Configuration指提供Json等方法输出序列化的nginx配置,能否提供将 type configuration struct { config *parser.Config rwLocker *sync.RWMutex loopPreventer loop_preventer.LoopPreventer utils.ConfigFingerprinter }中的config导出的接口
是需要parser.Config.Dump(dumper dumper.Dumper) error 这个方法还是仅需要导出各个配置文件,如果是后者,configuration.Configuration.Dump() map[string][]byte 方法提供了key为配置文件路径,value为配置文件内容byte切片。
from bifrost.
都不是,是直接导出 *parse.Config. 我这边需求是想获取这个之后做一些其他事情,比如配置检查,不同ngixn配置对比差异
from bifrost.
都不是,是直接导出 *parse.Config. 我这边需求是想获取这个之后做一些其他事情,比如配置检查,不同ngixn配置对比差异
哦,也是可以的,Configuration接口类继承了Querier类,可以使用Querier.Self()方法得到parser.Parser类:
func (c configuration) Self() parser.Parser {
return c.config
}
from bifrost.
都不是,是直接导出 *parse.Config. 我这边需求是想获取这个之后做一些其他事情,比如配置检查,不同ngixn配置对比差异
看是否解决了该需求,OK的话就先关闭该issue了
from bifrost.
Related Issues (7)
- 文档 HOT 10
- 有使用手册吗? HOT 13
- 功能都完善了么,还有啥坑么 HOT 1
- 通常include下会放很多server的配置,如何方便解析和修改数据 HOT 1
- Config可以解析成json,逆向操作如何实现 HOT 1
- nginx parse cannot parse lua script HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bifrost.