controller

package
v0.0.0-...-a686cab Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrQueueUnknown = errors.New("queue unknown")

Functions

This section is empty.

Types

type Cache

type Cache[T any] struct {
	// contains filtered or unexported fields
}

func NewCache

func NewCache[T any](ctx context.Context, dialer service.GrpcDialer, o Option) (*Cache[T], error)

func (*Cache[T]) Close

func (q *Cache[T]) Close() error

func (*Cache[T]) GetQueue

func (q *Cache[T]) GetQueue(ctx context.Context, tentant string, queueID string) (provider.Queue[T], error)

type Controller

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

func New

func (*Controller) Close

func (s *Controller) Close() error

func (*Controller) Dequeue

func (s *Controller) Dequeue(in *pb.DequeueRequest) (*pb.DequeueReply, error)

func (*Controller) Queue

func (s *Controller) Queue(in *pb.QueueRequest) (*pb.Void, error)

type Option

type Option struct {
	InMemory bool
	Dir      string
}

type QueueBuilder

type QueueBuilder[T any] func(string) (provider.Queue[T], error)

Jump to

Keyboard shortcuts

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