works enough for now

This commit is contained in:
Benjamin Tayehanpour 2026-06-16 22:47:04 +02:00
commit c04a9a752a
12 changed files with 178 additions and 0 deletions

17
compiler/models.py Normal file
View file

@ -0,0 +1,17 @@
from dataclasses import dataclass
@dataclass(frozen=True)
class Service:
name: str
internal_ip: str
internal_port: int
public_port: int
protocol: str
exposure: set[str]
@dataclass(frozen=True)
class GlobalConfig:
wan_interface: str
public_ip: str
lan_interface: str
internal_cidr: str