Back to

Package pubsub

Latest Go to latest

The highest tagged major version is .

Published: Mar 23, 2020 | License: MPL-2.0 | Module:


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 {

func New

func New() Service

New creates a new pubsub service

type Subscription

type Subscription interface {
	Close() error

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier