nats

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2021 License: MIT Imports: 7 Imported by: 0

README

nats-straming

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

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

func New

func New(ctx context.Context, opts ...Option) (*Broker, error)

func (*Broker) Close

func (b *Broker) Close() error

func (*Broker) Publish

func (b *Broker) Publish(event pigeon.Event) error

func (*Broker) Subscribe

func (b *Broker) Subscribe(typ reflect.Type, processor pigeon.EventProcessor) error

type Option

type Option func(c *Broker) error

func WithDebug

func WithDebug(v bool) Option

func WithOptions

func WithOptions(v ...nats.Option) Option

func WithURL

func WithURL(v string) Option

Jump to

Keyboard shortcuts

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