queue_service

package
v0.13.0-rc.12 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: Apache-2.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

View Source
const DEV_SUB_DIRECTORY = "./queues/"

Variables

This section is empty.

Functions

func New

func New() (queue.QueueService, error)

Types

type DevQueueService

type DevQueueService struct {
	queue.UnimplementedQueuePlugin
	// contains filtered or unexported fields
}

func (*DevQueueService) Complete

func (s *DevQueueService) Complete(queue string, leaseId string) error

Completes a previously popped queue item

func (*DevQueueService) Receive

func (s *DevQueueService) Receive(options queue.ReceiveOptions) ([]queue.NitricTask, error)

func (*DevQueueService) Send

func (s *DevQueueService) Send(queue string, task queue.NitricTask) error

func (*DevQueueService) SendBatch

func (s *DevQueueService) SendBatch(q string, tasks []queue.NitricTask) (*queue.SendBatchResponse, error)

type Item

type Item struct {
	ID   int `storm:"id,increment"` // primary key with auto increment
	Data []byte
}

Jump to

Keyboard shortcuts

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