Documentation ¶ Index ¶ type STUN func NewSTUN(c types.PacketConn, endpoint string, isV6 bool, logger *zap.Logger) (*STUN, error) func (s *STUN) Close() error func (s *STUN) Notify(fn func(addr netip.AddrPort)) func (s *STUN) Trigger() Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type STUN ¶ type STUN struct { // contains filtered or unexported fields } func NewSTUN ¶ func NewSTUN(c types.PacketConn, endpoint string, isV6 bool, logger *zap.Logger) (*STUN, error) func (*STUN) Close ¶ func (s *STUN) Close() error func (*STUN) Notify ¶ func (s *STUN) Notify(fn func(addr netip.AddrPort)) func (*STUN) Trigger ¶ func (s *STUN) Trigger() Source Files ¶ View all Source files conn.go stun.go Click to show internal directories. Click to hide internal directories.