connectors

package
v0.0.0-...-ee1c4a9 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector struct {
	C       *AMQP.Connection
	Channel *AMQP.Channel
	// contains filtered or unexported fields
}

func New

func New(host string) *Connector

func (*Connector) CancelMonitor

func (c *Connector) CancelMonitor()

func (*Connector) Close

func (c *Connector) Close() error

func (*Connector) Dial

func (c *Connector) Dial() error

func (*Connector) Get

func (c *Connector) Get(opts *connectors.SubscribeOptions) []byte

func (*Connector) GetPublishOptions

func (m *Connector) GetPublishOptions() *connectors.PublishOptions

func (*Connector) GetSubscribeOptions

func (m *Connector) GetSubscribeOptions() *connectors.SubscribeOptions

func (*Connector) ID

func (c *Connector) ID() string

func (*Connector) Listen

func (c *Connector) Listen(opts *connectors.SubscribeOptions, outch chan []byte) error

func (*Connector) Monitor

func (c *Connector) Monitor()

Monitor reset the status of the topology after disconnection from server Influenced by https://github.com/streadway/amqp/issues/133 per using a channel to be notified instead of using NotifyClose directly

func (*Connector) Name

func (c *Connector) Name() string

func (*Connector) On

func (c *Connector) On(opts *connectors.SubscribeOptions, f func(s []byte)) error

func (*Connector) Put

func (c *Connector) Put(opts *connectors.PublishOptions, msg []byte) error

func (*Connector) Stream

func (c *Connector) Stream(opts *connectors.PublishOptions, ch chan []byte) error

func (*Connector) String

func (c *Connector) String() string

Jump to

Keyboard shortcuts

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