broker

package
v0.0.63 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

type Broker interface {
	SetTaskDispatcher(dispatcher Taskdispatcher)
	Publish(ctx context.Context, task *task.Task) error
}

Broker - a common interface for all brokers local node remote(ip:port) node the mq

type Taskdispatcher

type Taskdispatcher interface {
	AddTask(task *task.Task) error
}

TaskProcessor - can process a delivered task This will probably always be a worker instance

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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