noq

package
v0.0.0-...-d22efa2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrTimedOut     = errors.New("timed out")
	ErrNotDelivered = errors.New("not delivered")
)

Functions

This section is empty.

Types

type Message

type Message struct {
	Obj    interface{}
	Result chan<- error
}

type Noqueue

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

func NewNoqueue

func NewNoqueue() *Noqueue

func (*Noqueue) Close

func (noqueue *Noqueue) Close()

func (*Noqueue) NonBlockingPublish

func (noqueue *Noqueue) NonBlockingPublish(ctx context.Context, channelID string, obj interface{}) <-chan error

func (*Noqueue) Publish

func (noqueue *Noqueue) Publish(ctx context.Context, channelID string, obj interface{}) error

func (*Noqueue) Subscribe

func (noqueue *Noqueue) Subscribe(channelID string) chan Message

func (*Noqueue) Unsubscribe

func (noqueue *Noqueue) Unsubscribe(channelID string, ch chan Message) chan struct{}

Jump to

Keyboard shortcuts

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