nats

package module
v3.0.0-...-73e0b26 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Overview

Package nats provides a NATS broker

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrainConnection

func DrainConnection() broker.Option

DrainConnection will drain subscription on close

func NewBroker

func NewBroker(opts ...broker.Option) broker.Broker

func Options

func Options(opts nats.Options) broker.Option

Options accepts nats.Options

Types

type Marshaler

type Marshaler struct{}

func (Marshaler) Marshal

func (j Marshaler) Marshal(v interface{}) ([]byte, error)

func (Marshaler) String

func (j Marshaler) String() string

func (Marshaler) Unmarshal

func (j Marshaler) Unmarshal(d []byte, v interface{}) error

Jump to

Keyboard shortcuts

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