Documentation ¶ Index ¶ Constants type Service Constants ¶ View Source const ( // ServiceNull 不在意端口号的服务 ServiceNull = iota // ServiceTunnel 管道通信服务 ServiceTunnel // ServiceWireGold 虚拟组网服务 ServiceWireGold ) 常用服务端口 Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Service ¶ type Service interface { // Start 无阻塞运行 Start(srcport, destport, mtu uint16) // Run 阻塞运行 Run(srcport, destport, mtu uint16) // Stop 停止 Stop() io.ReadWriter } Source Files ¶ View all Source files data.go Directories ¶ Show internal Expand all Path Synopsis services tunnel wg Click to show internal directories. Click to hide internal directories.