Versions in this module Expand all Collapse all v1 v1.9.18 Jun 18, 2024 v1.9.15 Jun 17, 2024 Changes in this version + const DSNFieldName + const HostDefault + const HostFieldName + const KeepAlivePeriodFiledName + const PortDefault + const PortFieldName + const ProtocolDefault + const ProtocolFieldName + const ProtocolTCP + const ProtocolUDP + var Component = &app.Component + var DSNDefault = fmt.Sprintf("%s:%d", HostDefault, PortDefault) + func BindFlags(flagSet *pflag.FlagSet, container container.Container) error + func New(config *Config, informer logger.Informer) (net.Conn, error) + func NewTCP(config *Config, informer logger.Informer) (*net.TCPConn, error) + func NewUDP(config *Config, informer logger.Informer) (*net.UDPConn, error) + func NewWithConfigurator(config *Config, configurator configurator.Configurator, ...) (net.Conn, error) + type Config struct + DSN string + Host string + KeepAlivePeriod time.Duration + Port uint16 + Protocol string + func Configuration(config *Config, configurator configurator.Configurator) *Config + func NewConfig() *Config