base

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type STAN

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

func NewSTAN

func NewSTAN(url string, clusterID string, auth *eventbuscommon.Auth, logger *zap.SugaredLogger) *STAN

NewSTAN returns a nats streaming driver

func (*STAN) MakeConnection

func (n *STAN) MakeConnection(clientID string) (*STANConnection, error)

type STANConnection

type STANConnection struct {
	NATSConn *nats.Conn
	STANConn stan.Conn

	NATSConnected bool
	STANConnected bool

	// defaultSubject  string
	ClientID string

	Logger *zap.SugaredLogger
}

func (*STANConnection) Close

func (nsc *STANConnection) Close() error

func (*STANConnection) IsClosed

func (nsc *STANConnection) IsClosed() bool

Jump to

Keyboard shortcuts

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