Versions in this module Expand all Collapse all v18 v18.0.0 May 14, 2025 Changes in this version + func IP2Addr(ip net.IP) (netip.Addr, bool) + func ListenConfigWithOSTCPKeepAlive() *net.ListenConfig + func ListenWithOSTCPKeepAlive(network, address string) (net.Listener, error) + func TLSListenWithOSTCPKeepAlive(network, laddr string, config *tls.Config) (net.Listener, error) + type ConnectionSet interface + GC func(context.Context) error + Set func(connID int64) error + Unset func(connID int64) error + type ListenerMetrics struct + ErrRep errz.ErrReporter + GCPeriod time.Duration + Log *slog.Logger + NewSet NewConnectionSet + func (m *ListenerMetrics) RunGC(ctx context.Context) + func (m *ListenerMetrics) Wrap(l net.Listener, name string, ttl time.Duration) (net.Listener, error) + type MultiURL struct + func MultiURLFromURL(u *url.URL, tlsHost string) (MultiURL, error) + func NewMultiURLForAddresses(scheme, tlsHost string, port uint16, addresses []netip.Addr) MultiURL + func NewMultiURLForHost(scheme, host, tlsHost string, port uint16) MultiURL + func ParseMultiURL(addr string) (MultiURL, error) + func ParseURL(addr, tlsHost string) (MultiURL, error) + func (u MultiURL) Addresses() []netip.Addr + func (u MultiURL) Host() string + func (u MultiURL) HostPort() string + func (u MultiURL) Port() uint16 + func (u MultiURL) Scheme() string + func (u MultiURL) String() string + func (u MultiURL) TLSHost() string + type NewConnectionSet func(name string, ttl time.Duration) (ConnectionSet, error) + type OnceCloseListener struct + func (oc *OnceCloseListener) Close() error v18.0.0-rc42 May 13, 2025 Other modules containing this package gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v16 gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v17