queue

package
v0.0.0-...-34e14d4 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaWriter

type KafkaWriter interface {
	WriteMessages(ctx context.Context, msgs ...kafka.Message) error
}

type Queue

type Queue struct {
	KafkaWriter KafkaWriter
	// contains filtered or unexported fields
}

func NewQueue

func NewQueue(ctx context.Context, kafkaWriter KafkaWriter) *Queue

func (*Queue) AddToQueue

func (q *Queue) AddToQueue(topic string, value interface{}) error

func (*Queue) Dispatch

func (q *Queue) Dispatch() error

Directories

Path Synopsis
Package mock_queue is a generated GoMock package.
Package mock_queue is a generated GoMock package.

Jump to

Keyboard shortcuts

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