storage

package
v0.0.0-...-388d6c9 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package storage provides the storage of the broker.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DelayStorage

type DelayStorage interface {
	// Produce produce a Message to DelayStorage
	Produce(ctx context.Context, msg *types.Message) error
	// Consume consume Messages from the queue
	Consume(ctx context.Context, now uint64, batchSize int64, fn type2.HandleMessage) error
	// Close the queue
	Close() error
}

DelayStorage is a queue to store messages with delay time the message will be delivered to the realtime queue after the delay time

Directories

Path Synopsis
Package redis_storage implements a storage with redis.
Package redis_storage implements a storage with redis.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳