subqueue

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OperationType

type OperationType int32
const (
	Subscribe OperationType = iota
	Unsubscribe
)

type Queue

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

func New

func New() *Queue

func (*Queue) Enqueue

func (s *Queue) Enqueue(d *Subscription)

func (*Queue) Len

func (s *Queue) Len() int

func (*Queue) Pop

func (s *Queue) Pop() *Subscription

type Subscription

type Subscription struct {
	Type  OperationType
	Topic string
	Cb    mqtt.MessageHandler
}

Jump to

Keyboard shortcuts

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