mqtt

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 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 ListenHandler

type ListenHandler interface {
	Handle(context.Context, notification.ExecutionMessage)
}

type Listener

type Listener interface {
	Subscribe(context.Context, string) error
}

func NewListener

func NewListener(addr string, hdl ListenHandler, opts ...ListenerOption) (Listener, error)

type ListenerOption

type ListenerOption func(*listener)

func WithLogLevel

func WithLogLevel(level zerolog.Level) ListenerOption

func WithLogger

func WithLogger(logger zerolog.Logger) ListenerOption

Jump to

Keyboard shortcuts

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