message

package
v0.0.0-...-60f5d5a Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 9 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 {
	// contains filtered or unexported fields
}

Client -

func NewClient

func NewClient(l logger.Logger, c Configuration) (*Client, error)

NewClient -

func (*Client) Consume

func (m *Client) Consume(queueARN string) (message *messenger.Message, err error)

Consume -

func (*Client) Init

func (m *Client) Init() error

Init -

func (*Client) Publish

func (m *Client) Publish(topicARN string, message messenger.Message) (messageID string, err error)

Publish -

type Configuration

type Configuration struct {
	AWSRegion          string
	AWSAccessKeyID     string
	AWSSecretAccessKey string
	AWSAccessToken     string
}

type FakedClient

type FakedClient struct {
	Client
}

func NewFakeClient

func NewFakeClient(l logger.Logger) (*FakedClient, error)

NewFakeClient -

func (*FakedClient) Consume

func (m *FakedClient) Consume(queueARN string) (message *messenger.Message, err error)

func (*FakedClient) Publish

func (m *FakedClient) Publish(topicARN string, message messenger.Message) (messageID string, err error)

Jump to

Keyboard shortcuts

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