Skip to content

aliyun/aliyun-mns-go-sdk

Repository files navigation

Aliyun MNS Go SDK

Github version

The Aliyun MNS Go SDK is the official SDK for MNS in the Go programming language

About

  • 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

Running Environment

  • Go 1.20 or above

Installing

  • Run thego 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

Getting Start

  • 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 and ALIBABA_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

License