Documentation ¶
Index ¶
- func CleanGlobalClientConnectionCache()
- type ClientConn
- func (c *ClientConn) Close() error
- func (c *ClientConn) CloseWrite() error
- func (c *ClientConn) Read(p []byte) (n int, err error)
- func (c *ClientConn) SetDeadline(t time.Time) error
- func (c *ClientConn) SetReadDeadline(t time.Time) error
- func (c *ClientConn) SetWriteDeadline(t time.Time) error
- func (c *ClientConn) Write(p []byte) (n int, err error)
- type Dialer
- type RecvResp
- type Server
- type ServerConn
- func (c *ServerConn) Close() error
- func (c *ServerConn) LocalAddr() net.Addr
- func (c *ServerConn) Read(p []byte) (n int, err error)
- func (c *ServerConn) RemoteAddr() net.Addr
- func (c *ServerConn) SetDeadline(t time.Time) error
- func (c *ServerConn) SetReadDeadline(t time.Time) error
- func (c *ServerConn) SetWriteDeadline(t time.Time) error
- func (c *ServerConn) Write(p []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanGlobalClientConnectionCache ¶
func CleanGlobalClientConnectionCache()
Types ¶
type ClientConn ¶
type ClientConn struct {
// contains filtered or unexported fields
}
func NewClientConn ¶
func NewClientConn(tun proto.GunService_TunClient, closer context.CancelFunc) *ClientConn
func (*ClientConn) Close ¶
func (c *ClientConn) Close() error
func (*ClientConn) CloseWrite ¶
func (c *ClientConn) CloseWrite() error
func (*ClientConn) SetDeadline ¶
func (c *ClientConn) SetDeadline(t time.Time) error
func (*ClientConn) SetReadDeadline ¶
func (c *ClientConn) SetReadDeadline(t time.Time) error
func (*ClientConn) SetWriteDeadline ¶
func (c *ClientConn) SetWriteDeadline(t time.Time) error
type Dialer ¶
type Dialer struct { NextDialer *netproxy.ContextDialer ServiceName string ServerName string AllowInsecure bool }
type Server ¶
func (Server) TunDatagram ¶
func (g Server) TunDatagram(datagramServer proto.GunService_TunDatagramServer) error
type ServerConn ¶
type ServerConn struct {
// contains filtered or unexported fields
}
func NewServerConn ¶
func NewServerConn(tun proto.GunService_TunServer, localAddr net.Addr) *ServerConn
func (*ServerConn) Close ¶
func (c *ServerConn) Close() error
func (*ServerConn) LocalAddr ¶
func (c *ServerConn) LocalAddr() net.Addr
func (*ServerConn) RemoteAddr ¶
func (c *ServerConn) RemoteAddr() net.Addr
func (*ServerConn) SetDeadline ¶
func (c *ServerConn) SetDeadline(t time.Time) error
func (*ServerConn) SetReadDeadline ¶
func (c *ServerConn) SetReadDeadline(t time.Time) error
func (*ServerConn) SetWriteDeadline ¶
func (c *ServerConn) SetWriteDeadline(t time.Time) error
Click to show internal directories.
Click to hide internal directories.