queue

package
v0.0.0-...-65c2b02 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type QueuePair

type QueuePair interface {
	Names() []string
	HasQueuePair(name string) bool
	Len() int
	SendQ(name string) workqueue.RateLimitingInterface
	RecvQ(name string) workqueue.RateLimitingInterface
	Create(name string) error
	Delete(name string, shutdown bool) error
}

type SendRecvQueues

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

func NewSendRecvQueues

func NewSendRecvQueues() *SendRecvQueues

func (*SendRecvQueues) Create

func (q *SendRecvQueues) Create(name string) error

Create creates and initializes a queue pair with name, and adds it to the list of available queues. The given name must be unique, if a queue pair with the same name already exists, Create will return an error.

func (*SendRecvQueues) Delete

func (q *SendRecvQueues) Delete(name string, shutdown bool) error

Delete will delete the named queue pair from the list of available queue. pairs. If shutdown is true, the Shutdown function will be called on both send and receive queues. If the named queue does not exist, Delete will return an error.

func (*SendRecvQueues) HasQueuePair

func (q *SendRecvQueues) HasQueuePair(name string) bool

HasQueuePair retruns true if a queue pair with name currently exists

func (*SendRecvQueues) Len

func (q *SendRecvQueues) Len() int

Len returns the number of queue pairs held by q

func (*SendRecvQueues) Names

func (q *SendRecvQueues) Names() []string

Names returns the names of all currently existing queues.

func (*SendRecvQueues) RecvQ

RecvQ will return the receive queue from the queue pair named name. If no such queue pair exists, returns nil

func (*SendRecvQueues) SendQ

RecvQ will return the send queue from the queue pair named name. If no such queue pair exists, returns nil

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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