fixing some functions
This commit is contained in:
@@ -5,6 +5,7 @@ type Config struct {
|
||||
Mapping map[string]string
|
||||
WellKnownDir string
|
||||
NFS NFSConfig
|
||||
Streams map[string]StreamConfig
|
||||
}
|
||||
|
||||
type CA struct {
|
||||
@@ -19,3 +20,10 @@ type NFSConfig struct {
|
||||
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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user