grpc

package
v0.2.15 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGRPCServer

func NewGRPCServer(node http.Node) (*grpc.Server, error)

Types

type QueueServer

type QueueServer struct {
	pb.UnimplementedDOQServer
	// contains filtered or unexported fields
}

func NewQueueServer

func NewQueueServer(node http.Node) *QueueServer

func (*QueueServer) Ack added in v0.2.4

func (s *QueueServer) Ack(ctx context.Context, req *pb.AckRequest) (*pb.AckResponse, error)

Ack message handling (this could be used to confirm message processing, depending on your requirements)

func (*QueueServer) CreateQueue

CreateQueue creates a new queue

func (*QueueServer) DeleteQueue

DeleteQueue deletes a queue

func (*QueueServer) Dequeue

func (s *QueueServer) Dequeue(ctx context.Context, req *pb.DequeueRequest) (*pb.DequeueResponse, error)

Dequeue implements server-side streaming for dequeuing messages

func (*QueueServer) DequeueStream

func (s *QueueServer) DequeueStream(req *pb.DequeueRequest, stream pb.DOQ_DequeueStreamServer) error

DequeueStream implements server-side streaming for dequeuing messages

func (*QueueServer) Enqueue

func (s *QueueServer) Enqueue(ctx context.Context, req *pb.EnqueueRequest) (*pb.EnqueueResponse, error)

Enqueue implements client-side streaming for enqueuing messages

func (*QueueServer) EnqueueStream

func (s *QueueServer) EnqueueStream(stream pb.DOQ_EnqueueStreamServer) error

EnqueueStream implements client-side streaming for enqueuing messages

func (*QueueServer) Nack added in v0.2.4

func (s *QueueServer) Nack(ctx context.Context, req *pb.NackRequest) (*pb.NackResponse, error)

Nack message handling (this could be used to confirm message processing, depending on your requirements)

func (*QueueServer) UpdatePriority

Acknowledge message handling (this could be used to confirm message processing, depending on your requirements)

Jump to

Keyboard shortcuts

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