This project is a config center that created by Golang
- Support multi data source
- Support multi data type
- Support multi data format
- Support multi data storage
- Support multi data sync
go get -u https://github.com/enbool/xing-lake
#### Docker
Starter Repository for Docker: https://github.com/enbool/xing-lake/lake
Run Script:
```shell
docker run -d -p 8080:8080 --name xing-lake enbool/xing-lake
### 3.2 Usage
#### 3.2.1 Create a config center
```go
ConfigServer := xing_lake.NewConfigServer()
ConfigServer.AddDataSource("mysql", "mysql://root:123456@localhost:3306/xing_lake")
ConfigServer.AddDataType("json", "json")
ConfigServer.AddDataFormat("json", "json")
ConfigClient := xing_lake.NewConfigClient()
ConfigClient.Connect("http://localhost:8080")
ConfigClient.GetConfig("mysql", "json", "json")
ConfigClient.SetConfig("mysql", "json", "json", "{'name':'xing-lake'}")
ConfigClient.DeleteConfig("mysql", "json", "json")
We encourage you to contribute to xing-lake! Please check out the [Contributing to xing-lake guide #TODO]
xing-lake is under the Apache License, Version 2.0