queue_service

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2022 License: Apache-2.0 Imports: 14 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(ctx context.Context, queue string, leaseId string) error

Completes a previously popped queue item

func (*DevQueueService) Receive

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

func (*DevQueueService) Send

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

func (*DevQueueService) SendBatch

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