amqpv1

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AMQPBrokerV1

type AMQPBrokerV1 struct {
	sync.Once
	URI        string // amqp[s]://[username][:password]@host.domain[:port][vhost]
	CID        string // client id
	CACertFile string
	CertFile   string
	KeyFile    string
	Insecure   bool
	Logger     log.Logger
	// contains filtered or unexported fields
}

func (*AMQPBrokerV1) Connect

func (a *AMQPBrokerV1) Connect() error

func (*AMQPBrokerV1) Disconnect

func (a *AMQPBrokerV1) Disconnect() error

func (*AMQPBrokerV1) Marshal

func (a *AMQPBrokerV1) Marshal() string

func (*AMQPBrokerV1) Publish

func (a *AMQPBrokerV1) Publish(topic string, msg *broker.Message, opt ...broker.PublishOption) (err error)

Publish

func (*AMQPBrokerV1) String

func (a *AMQPBrokerV1) String() string

func (*AMQPBrokerV1) Subscribe

func (a *AMQPBrokerV1) Subscribe(topics []string, callBack broker.CallBack, opt ...broker.SubscribeOption) (broker.Subscriber, error)

Subscribe

Jump to

Keyboard shortcuts

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