command
module
Version:
v0.0.0-...-044e210
Opens a new window with list of versions in this module.
Published: Apr 23, 2019
License: Apache-2.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
背景
代码和配置放到一起并不是好事情,配置中的很大部分是基础服务的配置,比如端口,数据库等等,这些信息应该由运维管理,同时降低了安全风险
设计思路
将配置数据存储到配置数据库中(etcd/mongodb等等),应用启动时加载这部分配置信息
配置文件的定义
数据项由代码来定义,确定字段后,将配置和获取分开
获取方式
可以简单的通过HTTP来获取
分组
使用一个.连接的字符串来区别,建立层级结构
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.