mq

package
v1.0.1-rc5 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateChannel

func CreateChannel(ctx context.Context, prjName string, hdl OnMessage) error

func StopChannel

func StopChannel(prjName string)

Types

type ChannelContext

type ChannelContext struct {
	Name string
	// contains filtered or unexported fields
}

func (*ChannelContext) Run

func (cc *ChannelContext) Run(ctx context.Context)

func (*ChannelContext) Stop

func (cc *ChannelContext) Stop()

type OnMessage

type OnMessage func(ctx context.Context, channel string, data *eventpb.Event) (interface{}, error)

Jump to

Keyboard shortcuts

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