queue

package
v0.0.0-...-076fb55 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

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

func New

func New(capacity uint) *Queue

func (*Queue) Build

func (q *Queue) Build() (*Queue, error)

func (*Queue) Close

func (q *Queue) Close() error

func (*Queue) Get

func (q *Queue) Get() (event.Event, error)

func (*Queue) Publish

func (q *Queue) Publish(e event.Event) error

func (*Queue) WithNumOfWorker

func (q *Queue) WithNumOfWorker(n uint) *Queue

func (*Queue) WithSubscriber

func (q *Queue) WithSubscriber(s qport.Subscriber) *Queue

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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