mqueue_rpc_server

package
v0.51.3 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MqueueStore

type MqueueStore struct {
	// contains filtered or unexported fields
}

MqueueStore implements the server with a MqueueStore.

func NewMqueueStore

func NewMqueueStore(store mqueue_store.Store) *MqueueStore

NewMqueueStore constructs a new MqueueStore.

func (*MqueueStore) GetMqueueMux

func (s *MqueueStore) GetMqueueMux(ctx context.Context, mqueueID string, _ func()) (srpc.Invoker, func(), error)

GetMqueueMux returns the srpc.Mux for a message queue.

func (*MqueueStore) ListMqueues

ListMqueues lists the message queues in the store.

func (*MqueueStore) MqueueRpc

MqueueRpc opens a RpcStream for a Queue.

func (*MqueueStore) RmMqueue

RmMqueue attempts to remove a message queue.

type Queue

type Queue struct {
	// contains filtered or unexported fields
}

Queue implements the message queue.

func NewQueue

func NewQueue(queue mqueue.Queue) *Queue

NewQueue constructs a new KvtxQueue service.

func (*Queue) Ack

Ack acknowledges a message by ID if the ID is the current message at the front of the queue.

func (*Queue) DeleteQueue

DeleteQueue deletes a queue and its contents.

func (*Queue) Peek

Peek peeks the next value in the queue without removing it.

func (*Queue) Push

Push pushes a message to the queue.

func (*Queue) Wait

Wait waits for a message to arrive.

Jump to

Keyboard shortcuts

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