Files
EasyTier/easytier-go/instance_config.go
T
KKRainbow 3d0c9c3ca5 chore(go): use lowercase module import path (#2560)
* chore(go): use lowercase module import path
* ci: scope checks for Go module changes
2026-09-10 15:13:55 +08:00

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)
}