mirror of
https://github.com/EasyTier/EasyTier.git
synced 2026-09-13 16:00:38 +00:00
* chore(go): use lowercase module import path * ci: scope checks for Go module changes
32 lines
1.2 KiB
Go
32 lines
1.2 KiB
Go
package host
|
|
|
|
import internalhost "github.com/easytier/easytier/easytier-go/internal/host"
|
|
|
|
// P2PPolicy controls when an instance attempts peer-to-peer connections.
|
|
type P2PPolicy = internalhost.P2PPolicy
|
|
|
|
// HolePunchingPolicy selects the hole-punching methods available to an instance.
|
|
type HolePunchingPolicy = internalhost.HolePunchingPolicy
|
|
|
|
// PortForwardProtocol identifies the transport used by a port-forward rule.
|
|
type PortForwardProtocol = internalhost.PortForwardProtocol
|
|
|
|
const (
|
|
PortForwardTCP PortForwardProtocol = internalhost.PortForwardTCP
|
|
PortForwardUDP PortForwardProtocol = internalhost.PortForwardUDP
|
|
)
|
|
|
|
// PortForwardConfig exposes a host socket through the EasyTier data plane.
|
|
type PortForwardConfig = internalhost.PortForwardConfig
|
|
|
|
// InstanceConfig is an immutable EasyTier instance configuration.
|
|
type InstanceConfig = internalhost.InstanceConfig
|
|
|
|
// InstanceConfigBuilder builds a validated InstanceConfig.
|
|
type InstanceConfigBuilder = internalhost.InstanceConfigBuilder
|
|
|
|
// NewInstanceConfigBuilder starts a configuration for networkName.
|
|
func NewInstanceConfigBuilder(networkName string) *InstanceConfigBuilder {
|
|
return internalhost.NewInstanceConfigBuilder(networkName)
|
|
}
|