queue

package
Version: v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package queue is in charge of creating and handling a queue that receives data and sends it in bulk whenever it is possible, i.e. when the component that will receive it is ready to process it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

type Queue interface {
	// Enqueue intructs the queue that a new data must be sent on next request
	Enqueue(events map[string]*openapi.Event)
}

Queue contains data that will be sent to a handler

func New

func New(ctx context.Context, servsHandler services.Handler) Queue

New returns a Queue that receives data and sends it in bulk whenever possible

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL