mq

package
v1.0.30 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2023 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Reg

func Reg(driver string, driverCreator DriverCreator)

Types

type Driver

type Driver interface {
	Send(topic string, name string, data interface{}) error
	On(queue string, fn func(name string, data interface{}) bool) context.CancelFunc
	Recycle()
}

func NewDriver

func NewDriver(dirver string, config interface{}) (Driver, error)

type DriverCreator

type DriverCreator func(driver string, config interface{}) (Driver, error)

Jump to

Keyboard shortcuts

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