Documentation ¶
Index ¶
- func ListenAndServe(address string, log *zap.Logger) error
- func NextServer() string
- func Request(logger *zap.SugaredLogger, stunSvr string, srcPort int) (netip.AddrPort, error)
- func RequestWithReusePort(logger *zap.SugaredLogger, stunServer string, srcPort int) (netip.AddrPort, error)
- func SetServers(servers []string)
- type ClosableServer
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NextServer ¶
func NextServer() string
func RequestWithReusePort ¶
func SetServers ¶
func SetServers(servers []string)
Types ¶
type ClosableServer ¶
func ListenAndStart ¶
func ListenAndStart(address string, log *zap.Logger) (*ClosableServer, error)
func (*ClosableServer) Close ¶
func (s *ClosableServer) Close() error
func (*ClosableServer) Shutdown ¶
func (s *ClosableServer) Shutdown() error
Click to show internal directories.
Click to hide internal directories.