easy

package
v0.0.0-...-dc219fa Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

type Consumer struct {
	// contains filtered or unexported fields
}

Consumer a simple consumer

func NewConsumer

func NewConsumer(secretID string, secretKey string, region string, net string, queueName string) *Consumer

NewConsumer proc

func (*Consumer) Ack

func (c *Consumer) Ack(msg *Message)

Ack ack an message

func (*Consumer) Shutdown

func (c *Consumer) Shutdown()

Shutdown close it

func (*Consumer) StartListen

func (c *Consumer) StartListen(messageChan chan *Message)

StartListen lst

type Message

type Message struct {
	Body          string
	ReceiptHandle string
}

Message a simple consumer

type Producer

type Producer struct {
	// contains filtered or unexported fields
}

Producer a producer

func NewProducer

func NewProducer(secretID string, secretKey string, region string, net string, queueName string) *Producer

NewProducer proc

func (*Producer) Send

func (p *Producer) Send(message string) error

Send send to ps

Jump to

Keyboard shortcuts

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