nats

package
v0.0.0-...-a7b4c27 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	Build() Interface
}

type ConnectionBuilder

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

func NewBuilder

func NewBuilder(url, name string, opts ...natsio.Option) (*ConnectionBuilder, error)

func (*ConnectionBuilder) Build

func (b *ConnectionBuilder) Build() Interface

type Interface

type Interface interface {
	// Connect connects to NATS and returns an error if it cannot connect.
	// It also registers both the connect and disconnect handlers.
	Connect(handler natsio.ConnHandler, errorHandler natsio.ConnErrHandler) error

	// Disconnect disconnects the NATS connection.
	Disconnect()
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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