Versions in this module Expand all Collapse all v0 v0.42.0 May 14, 2022 Changes in this version + type Option func(*Server) *Server + func WithBindAddr(addr string) Option + func WithBindPort(port int) Option + func WithCustomHandler(handler func(net.Conn)) Option + func WithRespContent(content []byte) Option + type Server struct + func New(netType Type, options ...Option) *Server + func (s *Server) BindAddr() string + func (s *Server) BindPort() int + func (s *Server) Close() error + func (s *Server) Run() error + type Type string + const TCP + const UDP + const Unix