messagequeue

package
v1.0.46 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMessageQueue

func GetMessageQueue()

func InitMessageQueue

func InitMessageQueue()

func ProcessAllMessageQueueItems

func ProcessAllMessageQueueItems()

func ProcessMessageQueueItem

func ProcessMessageQueueItem(messageItem *MessageQueueItem) error

func ShutdownMessageQueue

func ShutdownMessageQueue() error

Types

type HttpRequestBody_MessageItem

type HttpRequestBody_MessageItem struct {
	Item MessageQueueItem `json:"item"`
}

type MessageQueueItem

type MessageQueueItem struct {
	ID        string      `json:"_id"`
	Action    string      `json:"action"`
	Data      interface{} `json:"data"`
	Completed bool        `json:"completed"`
	Error     string      `json:"error"`
	Retries   int         `json:"retries"`
	Created   time.Time   `json:"created"`
}

Jump to

Keyboard shortcuts

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