base

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Jetstream

type Jetstream struct {
	MgmtConnection JetstreamConnection

	Logger *zap.SugaredLogger
	// contains filtered or unexported fields
}

func NewJetstream

func NewJetstream(url string, streamSettings string, auth *eventbuscommon.Auth, logger *zap.SugaredLogger) (*Jetstream, error)

func (*Jetstream) CreateStream

func (stream *Jetstream) CreateStream(conn *JetstreamConnection) error

func (*Jetstream) Init

func (stream *Jetstream) Init() error

func (*Jetstream) MakeConnection

func (stream *Jetstream) MakeConnection() (*JetstreamConnection, error)

type JetstreamConnection

type JetstreamConnection struct {
	NATSConn  *nats.Conn
	JSContext nats.JetStreamContext

	NATSConnected bool

	Logger *zap.SugaredLogger
}

func (*JetstreamConnection) Close

func (jsc *JetstreamConnection) Close() error

func (*JetstreamConnection) IsClosed

func (jsc *JetstreamConnection) IsClosed() bool

Jump to

Keyboard shortcuts

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