bus

package
v0.0.0-...-0690fc6 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bus

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

Bus AFAIRE.

func New

func New(util util.Resource, logger *logger.Logger) *Bus

New AFAIRE.

func (*Bus) AddPublisher

func (b *Bus) AddPublisher(name string, chCapacity, consumer int) chan<- *message.Message

AddPublisher AFAIRE.

func (*Bus) Close

func (b *Bus) Close()

Close AFAIRE.

func (*Bus) Subscribe

func (b *Bus) Subscribe(cb func(*message.Message), reList ...string) error

Subscribe AFAIRE.

type Resource

type Resource interface {
	resources.Bus
}

Resource AFAIRE.

Jump to

Keyboard shortcuts

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