queue

package
v1.1.1-rc-1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Payload interface{}
	Topic   string
}

type Queue

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

Queue is a wrapper of a go channel, particularly to restrict actions on the channel itself

func NewQueue

func NewQueue() *Queue

func (*Queue) Channel

func (q *Queue) Channel() chan *Message

func (*Queue) Push

func (q *Queue) Push(message *Message)

Push pushes a message to the channel

Jump to

Keyboard shortcuts

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