cfgstore

command module
v0.0.0-...-044e210 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

README

背景

代码和配置放到一起并不是好事情,配置中的很大部分是基础服务的配置,比如端口,数据库等等,这些信息应该由运维管理,同时降低了安全风险

设计思路

将配置数据存储到配置数据库中(etcd/mongodb等等),应用启动时加载这部分配置信息

配置文件的定义

数据项由代码来定义,确定字段后,将配置和获取分开

获取方式

可以简单的通过HTTP来获取

分组

使用一个.连接的字符串来区别,建立层级结构

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL