Versions in this module Expand all Collapse all v1 v1.0.0 Aug 6, 2026 Changes in this version + var ErrClosed = errors.New("server closed") + type Options struct + Addr string + AllowedIPs []string + AuthFailureDelay time.Duration + Logger *zap.Logger + MaxConnections int + MaxRequestBytes int64 + Password string + ReadTimeout time.Duration + Router *command.Router + TLSConfig *tls.Config + WriteTimeout time.Duration + type TCP struct + func NewTCP(opts Options) *TCP + func (s *TCP) ListenAndServe() error + func (s *TCP) Shutdown(ctx context.Context) error