natspub

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Publisher

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

Publisher is an implementation ofn pubsub.Publisher interface for NATS.

func New

func New(url string, enabled bool) (*Publisher, error)

New returns new connection to NATS.

func (*Publisher) Publish

func (p *Publisher) Publish(event *eventapi.Event) error

Publish publishes event into the queue.

Jump to

Keyboard shortcuts

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