Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PeerStatus ¶
type PeerStatusArray ¶
type PeerStatusArray interface { Get(i int) *PeerStatus Size() int }
type PeerStatusConsumer ¶
type PeerStatusConsumer interface {
OnPeerStatus(*PeerStatus)
}
type VpnConfig ¶
type VpnConfig struct {
// contains filtered or unexported fields
}
type VpnContext ¶
type VpnContext struct {
// contains filtered or unexported fields
}
func PrepareVPN ¶
func PrepareVPN(fd int, srcURL, dstURL string, key string, listener VpnEvent) *VpnContext
func (*VpnContext) Connect ¶
func (c *VpnContext) Connect()
func (*VpnContext) Disconnect ¶
func (c *VpnContext) Disconnect()
func (*VpnContext) GetPeerStatus ¶
func (c *VpnContext) GetPeerStatus() PeerStatusArray
func (*VpnContext) Ok ¶
func (c *VpnContext) Ok() bool
func (*VpnContext) ResetConnection ¶
func (c *VpnContext) ResetConnection()
func (*VpnContext) StatusText ¶
func (c *VpnContext) StatusText() string
type VpnEvent ¶
type VpnEvent interface {
OnDisconnect()
}
Click to show internal directories.
Click to hide internal directories.