Documentation
¶
Index ¶
- type NatTransport
- func (t *NatTransport) Address() string
- func (t *NatTransport) DialTimeout(addr string, timeout time.Duration) (net.Conn, error)
- func (t *NatTransport) PacketCh() <-chan *memberlist.Packet
- func (t *NatTransport) StreamCh() <-chan net.Conn
- func (t *NatTransport) WriteTo(b []byte, addr string) (time.Time, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NatTransport ¶
type NatTransport struct {
// contains filtered or unexported fields
}
func NewNatTransport ¶
func NewNatTransport(host string, port int) (*NatTransport, error)
port to config later
func (*NatTransport) Address ¶
func (t *NatTransport) Address() string
func (*NatTransport) DialTimeout ¶
func (*NatTransport) PacketCh ¶
func (t *NatTransport) PacketCh() <-chan *memberlist.Packet
func (*NatTransport) StreamCh ¶
func (t *NatTransport) StreamCh() <-chan net.Conn
Click to show internal directories.
Click to hide internal directories.