mqtt

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Channel

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

func (*Channel) Consume

func (c *Channel) Consume(handler goChan.Handler) chan error

func (*Channel) Produce

func (c *Channel) Produce(ctx context.Context, messageInterface goChan.MessageInterface) error

func (*Channel) SetReaderMiddleWares

func (c *Channel) SetReaderMiddleWares(mw ...goChan.Middleware)

func (*Channel) SetWriterMiddleWares

func (c *Channel) SetWriterMiddleWares(mw ...goChan.Middleware)

type ChannelConfig

type ChannelConfig struct {
	Host     string
	Port     int
	Username string
	Password string
	Qos      int
}

type Manager

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

func NewManager

func NewManager(config goChan.ConfigInterface) (*Manager, error)

func (Manager) CreateChannel

func (m Manager) CreateChannel(name string, config goChan.ConfigInterface) (goChan.ChannelInterface, error)

func (Manager) NewClient

func (m Manager) NewClient(config ChannelConfig) (*mqtt.Client, error)

func (Manager) Ready

func (m Manager) Ready() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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