package
0.1.0
Repository: https://github.com/nats-io/nats-replicator.git
Documentation: pkg.go.dev

# Functions

CreateConnector builds a connector from the supplied configuration.
NewConnectorStatsHolder creates an empty stats holder, and initializes the request time histogram.
NewHistogram returns a new Histogram with a maximum of n bins.
NewNATS2NATSConnector create a new NATS to NATS connector.
NewNATS2StanConnector create a new NATS to STAN connector.
NewNATSReplicator creates a new account server with a default logger.
NewStan2NATSConnector create a new stan to a nats subject.
NewStan2StanConnector create a nats to MQ connector.

# Constants

HTTP endpoints.
HTTP endpoints.
HTTP endpoints.

# Structs

Bin holds a float64 value and count.
BridgeStats wraps the current status of the bridge and all of its connectors.
ConnectorStats captures the statistics for a single connector times are in nanoseconds, use a holder to get the protection of a lock and to fill in the quantiles.
ConnectorStatsHolder provides a lock and histogram for a connector to updated it's stats.
Flags defines the various flags you can call the account server with.
Histogram stores N bins using the streaming approximate histogram approach The histogram is not thread safe.
NATS2NATSConnector connects a NATS subject to a different NATS subject.
NATS2StanConnector connects NATS subject to a nats streaming channel.
NATSReplicator is the core structure for the server.
ReplicatorConnector is the base type used for connectors so that they can share code The config, bridge and stats are all fixed at creation, so no lock is required on the connector at this level.
Stan2NATSConnector connects a STAN channel to NATS.
Stan2StanConnector connects a streaming channel to another streaming channel.

# Interfaces

Connector is the abstraction for all of the bridge connector types.