bus

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Publish

func Publish(topic string, event any)

func PublishC

func PublishC(c context.Context, topic string, event any)

func PublishCE

func PublishCE(c context.Context, topic string, event any) error

func PublishE

func PublishE(topic string, event any) error

func Subscribe

func Subscribe(topic string, handler Handler)

func SubscribeCE

func SubscribeCE(topic string, handler HandlerCE)

func SubscribeE

func SubscribeE(topic string, handler HandlerE)

Types

type Handler

type Handler func(event any)

type HandlerC

type HandlerC func(c context.Context, event any)

type HandlerCE

type HandlerCE func(c context.Context, event any) error

type HandlerE

type HandlerE func(event any) error

Jump to

Keyboard shortcuts

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