22 lines
458 B
Go
22 lines
458 B
Go
package config
|
|
|
|
import "log/slog"
|
|
|
|
type Config struct {
|
|
Log LogConfig `toml:"log"`
|
|
Gateway GatewayConfig `toml:"gateway"`
|
|
}
|
|
|
|
type GatewayConfig struct {
|
|
HttpPort int `toml:"http_port"`
|
|
Websocket string `toml:"websocket"`
|
|
BodySize int `toml:"body_size"`
|
|
QueueSize int `toml:"queue_max"`
|
|
}
|
|
|
|
type LogConfig struct {
|
|
Level slog.Level `toml:"level"`
|
|
Directory string `toml:"directory"`
|
|
Rotation int `toml:"rotation"`
|
|
}
|