8000 GitHub - zouyx/agollo_demo: 👾Demo For Agollo
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

zouyx/agollo_demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

agollo_demo - Demo For Apollo

agollo 的使用Demo

主要用于验证 Agollo 客户端自动刷新功能

Dependence

使用go get方式

go mod

使用gopm方式(推荐)

gopm get github.com/cihub/seelog -v -g
gopm get github.com/apolloconfig/agollo -v -g

推荐gopm,不需要翻墙

Installation

如果还没有安装Go开发环境,请参考以下文档Getting Started ,安装完成后,请执行以下命令:

用法

初始化方法

创建应用

appid:agollo-test 应用名称:agollo-test

创建私有 Namespace

testjson.json
{
  "a":"b",
  "c":"d"
}
yml
application:
    name: agollo-test
    port: 8000

创建加密应用

appid:agollo-secret-test 应用名称:agollo-secret-test

application
connect: 10
quatity: 5

##### 开启密钥

About

👾Demo For Agollo

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  
0