queue

package
v1.5.26 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 12 Imported by: 1

Documentation

Overview

Package queue allows you to queue and retrieve network encrypted messages from the queue.

The internal process of the queue generates constantly false messages for the continuous possibility of receiving messages. Taking messages from the queue involves a generation or waiting period.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IMessageQueue

type IMessageQueue interface {
	types.IRunner
	WithNetworkSettings(uint64, net_message.ISettings) IMessageQueue

	GetSettings() ISettings
	GetClient() client.IClient

	EnqueueMessage(message.IMessage) error
	DequeueMessage(context.Context) net_message.IMessage
}

func NewMessageQueue

func NewMessageQueue(pSett ISettings, pClient client.IClient) IMessageQueue

type ISettings

type ISettings interface {
	GetMainCapacity() uint64
	GetPoolCapacity() uint64
	GetParallel() uint64
	GetDuration() time.Duration
}

func NewSettings

func NewSettings(pSett *SSettings) ISettings

type SSettings

type SSettings sSettings

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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