Categorygithub.com/Autodoc-Technology/net-conn-nats-proxy

# README

net.Conn NATS Proxy

net.Conn client proxy powered by NATS transport.

Description

This is a simple net.Conn proxy that forwards all traffic to a NATS server. It is designed to be used as a client proxy for a NATS server. It is not a full NATS client, but a simple net.Conn proxy.

Usage

Look at the example directory for a simple example of how to use this package.

# Packages

No description provided by the author

# Functions

NewDebugCustomLogNetConn returns a new DebugLogNetConn instance with the provided debug logger.
NewDebugLogNetConn returns a new DebugLogNetConn instance.
NewNatsConnProxy creates a new NatsConnProxy with the provided NATS connection, subject, and connection pool.
NewNatsNetConn returns a new NatsNetConn instance.
NewNetConnPullManager creates a new instance of NetConnPullManager.
WithUUID sets the UUID option for the Get function.

# Variables

DefaultDial is the default dial function that dials a network address using net.Dial.

# Structs

DebugLogNetConn is a type that wraps a net.Conn and logs debugging information for read, write, and close operations.
NatsConnProxy represents a proxy for NATS connections.
NatsNetConn is a type that wraps a nats.Conn and provides methods for reading, writing, closing, and managing deadlines on network connections.
NetConnPullManager represents a pool manager for network connections.

# Interfaces

DebugLogger is an interface that defines a method for logging debug messages.
NetConnManager represents an interface for managing network connections.

# Type aliases

DebugLoggerFunc represents a function type that can be used as a debug logger.
DialFn represents a function that dials a network address.
GetOption represents a function type for setting Get function options.