Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Msgqueue

type Msgqueue interface {
	SubscribeQueue(queueid, queuegroup string, worker func(msgdata []byte)) (Subscription, error)
	Publish(queueid string, msgdata []byte) error
}

Msgqueue is a service wrapper around a nats streaming queue client instance

type Service

type Service interface {
	governor.Service
	Msgqueue
}

func New

func New() (Service, error)

New creates a new msgqueue service

type Subscription

type Subscription interface {
	Close() error
}

Source Files

Directories

Path Synopsis
store