mq

package
v1.15.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MQ

type MQ interface {
	Send(topic string, message *gomq.Message) error
	Consume(ctx context.Context, topic string, group string, consumer string, start string, batchSize int, h gomq.Handler) error
}

MQ ...

func New

func New(ctx context.Context, ps gomq.MQ) MQ

New creates a mq at the given context.

Jump to

Keyboard shortcuts

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