common

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

type Consumer interface {
	Start(chan bool)
}

func NewConsumer

func NewConsumer(protocol Protocol, cfg config.Config, id int) (Consumer, error)

type Protocol

type Protocol int
const (
	AMQP Protocol = iota
	STOMP
	MQTT
)

type Publisher

type Publisher interface {
	Start()
}

func NewPublisher

func NewPublisher(protocol Protocol, cfg config.Config, id int) (Publisher, error)

Jump to

Keyboard shortcuts

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