2026-06-04 17:32:11 +07:00

30 lines
869 B
Go

package config
type Config struct {
CA CA
Mapping map[string]string
WellKnownDir string
NFS NFSConfig
Streams map[string]StreamConfig
}
type CA struct {
CacheDir string
Email string
}
type NFSConfig struct {
Enabled bool `toml:"enabled"`
Server string `toml:"server"`
ExportPath string `toml:"export_path"`
MountPoint string `toml:"mount_point"`
Options string `toml:"options"`
}
// StreamConfig описывает конфигурацию UDP/TCP стрима
type StreamConfig struct {
Protocol string `toml:"protocol"` // "tcp" или "udp"
Target string `toml:"target"` // целевой адрес в формате "host:port"
Timeout int `toml:"timeout"` // таймаут в секундах (опционально, по умолчанию 300)
}