mns

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 14, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Mns   *mns.MNSClient
	Queue *mns.AliMNSQueue
}

func New

func New(c *Config) *Client

func (*Client) ChangeMessageVisibility

func (c *Client) ChangeMessageVisibility(r string, t int64) (err error)

func (*Client) DeleteMessage

func (c *Client) DeleteMessage(r string) (err error)

func (*Client) NewMessage

func (c *Client) NewMessage(s string) mns.MessageSendRequest

func (*Client) ReceiveMessage

func (c *Client) ReceiveMessage(r chan mns.MessageReceiveResponse, e chan error, s int64)

func (*Client) SendMessage

func (c *Client) SendMessage(m mns.MessageSendRequest) (err error)

type Config

type Config struct {
	Url             string
	QueueName       string
	AccessKeyId     string
	AccessKeySecret string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL