pubsub

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pubsub

type Pubsub interface {
	Subscribe(queueid string, worker func(msgdata []byte)) (Subscription, error)
	SubscribeGroup(queueid, queuegroup string, worker func(msgdata []byte)) (Subscription, error)
	Publish(queueid string, msgdata []byte) error
}

Pubsub is a service wrapper around a nats pub sub client

type Service

type Service interface {
	governor.Service
	Pubsub
}

func New

func New() Service

New creates a new pubsub service

type Subscription

type Subscription interface {
	Close() error
}

Jump to

Keyboard shortcuts

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