Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/apolloconfig/agollo
🚀Go client for ctrip/apollo (https://github.com/apolloconfig/apollo)
https://github.com/apolloconfig/agollo
apollo apollo-client client-library client-side configuration-management go godoc golang
Last synced: 3 days ago
JSON representation
🚀Go client for ctrip/apollo (https://github.com/apolloconfig/apollo)
- Host: GitHub
- URL: https://github.com/apolloconfig/agollo
- Owner: apolloconfig
- License: apache-2.0
- Created: 2017-06-23T03:17:45.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-10-28T02:03:18.000Z (3 months ago)
- Last Synced: 2024-10-29T22:37:28.944Z (3 months ago)
- Topics: apollo, apollo-client, client-library, client-side, configuration-management, go, godoc, golang
- Language: Go
- Homepage: https://www.apolloconfig.com
- Size: 864 KB
- Stars: 708
- Watchers: 15
- Forks: 188
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
Agollo - Go Client for Apollo
================[![golang](https://img.shields.io/badge/Language-Go-green.svg?style=flat)](https://golang.org)
[![Build Status](https://github.com/apolloconfig/agollo/actions/workflows/go.yml/badge.svg)](https://github.com/apolloconfig/agollo/actions/workflows/go.yml)
[![Go Report Card](https://goreportcard.com/badge/github.com/apolloconfig/agollo)](https://goreportcard.com/report/github.com/apolloconfig/agollo)
[![codebeat badge](https://codebeat.co/badges/bc2009d6-84f1-4f11-803e-fc571a12a1c0)](https://codebeat.co/projects/github-com-apolloconfig-agollo-master)
[![Coverage Status](https://coveralls.io/repos/github/apolloconfig/agollo/badge.svg?branch=master)](https://coveralls.io/github/apolloconfig/agollo?branch=master)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
[![GoDoc](http://godoc.org/github.com/apolloconfig/agollo?status.svg)](http://godoc.org/github.com/apolloconfig/agollo)
[![GitHub release](https://img.shields.io/github/release/apolloconfig/agollo.svg)](https://github.com/apolloconfig/apolloconfig/releases)
[![996.icu](https://img.shields.io/badge/link-996.icu-red.svg)](https://996.icu)方便Golang接入配置中心框架 [Apollo](https://github.com/ctripcorp/apollo) 所开发的Golang版本客户端。
# Features
* 支持多 IP、AppID、namespace
* 实时同步配置
* 灰度配置
* 延迟加载(运行时)namespace
* 客户端,配置文件容灾
* 自定义日志,缓存组件
* 支持配置访问秘钥# Usage
## 快速入门
### 导入 agollo
```
go get -u github.com/apolloconfig/agollo/v4@latest
```### 启动 agollo
```
package mainimport (
"fmt"
"github.com/apolloconfig/agollo/v4"
"github.com/apolloconfig/agollo/v4/env/config"
)func main() {
c := &config.AppConfig{
AppID: "testApplication_yang",
Cluster: "dev",
IP: "http://106.54.227.205:8080",
NamespaceName: "dubbo",
IsBackupConfig: true,
Secret: "6ce3ff7e96a24335a9634fe9abca6d51",
}client, _ := agollo.StartWithConfig(func() (*config.AppConfig, error) {
return c, nil
})
fmt.Println("初始化Apollo配置成功")//Use your apollo key to test
cache := client.GetConfigCache(c.NamespaceName)
value, _ := cache.Get("key")
fmt.Println(value)
}
```## 更多用法
***使用Demo*** :[agollo_demo](https://github.com/zouyx/agollo_demo)
***其他语言*** : [agollo-agent](https://github.com/zouyx/agollo-agent.git) 做本地agent接入,如:PHP
欢迎查阅 [Wiki](https://github.com/apolloconfig/agollo/wiki) 或者 [godoc](http://godoc.org/github.com/zouyx/agollo) 获取更多有用的信息
如果你觉得该工具还不错或者有问题,一定要让我知道,可以发邮件或者[留言](https://github.com/apolloconfig/agollo/issues)。
# User
* [使用者名单](https://github.com/apolloconfig/agollo/issues/20)
# Contribution
* Source Code: https://github.com/apolloconfig/agollo/
* Issue Tracker: https://github.com/apolloconfig/agollo/issues# License
The project is licensed under the [Apache 2 license](https://github.com/apolloconfig/agollo/blob/master/LICENSE).
# Reference
Apollo : https://github.com/ctripcorp/apollo