项目作者: goapt

项目描述 :
aliyun acm sdk for golang
高级语言: Go
项目地址: git://github.com/goapt/goacm.git
创建时间: 2018-07-04T08:36:58Z
项目社区:https://github.com/goapt/goacm

开源协议:MIT License

下载


Aliyun ACM SDK for Golang

Build Status
GoDoc

Aliyun acm sdk for golang, support multiple IP

Usage

  1. import "github.com/goapt/goacm"
  2. client, err := goacm.NewClient(func(c *Client) {
  3. c.AccessKey = "******"
  4. c.SecretKey = "******"
  5. c.EndPoint = "acm.aliyun.com"
  6. c.NameSpace = "******"
  7. })
  8. if err != nil {
  9. log.Fatal(err)
  10. }
  11. //get config
  12. ret, err := client.GetConfig("test", "DEFAULT_GROUP")
  13. //Subscribe
  14. ret, err := client.Subscribe("test", "DEFAULT_GROUP","")
  15. //publish config
  16. ret, err := client.Publish("test", "DEFAULT_GROUP","test")
  17. //remove config
  18. ret, err := client.Delete("test", "DEFAULT_GROUP")

License

The SDK is open-sourced software licensed under the MIT license.