The Aliyun MNS Go SDK is the official SDK for MNS in the Go programming language
- This Go SDK is built on the official API of Alibaba Cloud Message Service (MNS)
- Alibaba Cloud Message Service (MNS) is an efficient, reliable, secure, convenient, and elastically scalable distributed messaging service
- MNS enables application developers to freely transmit data and notification messages across the distributed components of their applications, building loosely coupled systems
- Using this SDK, users can quickly build highly reliable and concurrent one-to-one consumption models as well as one-to-many publish-subscribe models
- Go 1.20 or above
- Run the
go get github.com/aliyun/aliyun-mns-go-sdk
command to get the remote code package. - Use
import "github.com/aliyun/aliyun-mns-go-sdk"
in your code to introduce MNS Go SDK package
- Download the latest version of the Go SDK and enter the example directory
- Modify 'endpoint' to your own access point, which can be viewed by logging into the MNS console. For more detail, see How to get endpoint
- Set your
ALIBABA_CLOUD_ACCESS_KEY_ID
andALIBABA_CLOUD_ACCESS_KEY_SECRET
in the environment variables, Alibaba Cloud authentication information can be created in the RAM console. For more detail, see How to get AccessKey - Follow the Alibaba Cloud standards and set the AK (Access Key) and SK (Secret Key) in the environment variables. For more details, see How to set environment variables
- Apache-2.0 see license file