passthroughqueue

package
v0.0.0-...-c7c8722 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DirectiveName = "passthroughqueue"

Functions

func Factory

func Factory(loader func(v interface{}) error) (notificationqueue.Directive, error)

Types

type Passthroughqueue

type Passthroughqueue struct {
	IDGenerator func() (string, error)
	// contains filtered or unexported fields
}

func New

func New() *Passthroughqueue

func (*Passthroughqueue) AppylToPublisher

func (q *Passthroughqueue) AppylToPublisher(p *notificationqueue.Publisher) error

func (*Passthroughqueue) AttachTo

AttachTo attach queue to notifier

func (*Passthroughqueue) Detach

func (pq *Passthroughqueue) Detach() error

Detach detach queue.

func (*Passthroughqueue) PopChan

func (q *Passthroughqueue) PopChan() (<-chan *notificationqueue.Execution, error)

PopChan return execution chan

func (*Passthroughqueue) Push

Push push notification to queue

func (*Passthroughqueue) Remove

func (q *Passthroughqueue) Remove(nid string) error

Remove remove notification by given id

func (*Passthroughqueue) Start

func (q *Passthroughqueue) Start() error

Start start queue

func (*Passthroughqueue) Stop

func (q *Passthroughqueue) Stop() error

Stop stop queue

Jump to

Keyboard shortcuts

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