concur

package
v0.0.0-...-6dc577f Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsyncBus

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

func NewBus

func NewBus() (*AsyncBus, error)

func (AsyncBus) Emit

func (b AsyncBus) Emit(ctx context.Context, topic string, data interface{}) error

func (AsyncBus) RegisterHandler

func (b AsyncBus) RegisterHandler(name string, handler Handler, matcher string)

func (AsyncBus) RegisterTopics

func (b AsyncBus) RegisterTopics(topics ...string)

func (AsyncBus) Shutdown

func (b AsyncBus) Shutdown(ctx context.Context) error

type Emitter

type Emitter interface {
	Emit(ctx context.Context, topic string, data interface{}) error
}

type Handler

type Handler func(context.Context, Emitter, bus.Event)

Jump to

Keyboard shortcuts

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