mirror of https://github.com/synctv-org/synctv
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
374 B
Go
14 lines
374 B
Go
package conf
|
|
|
|
type RoomConfig struct {
|
|
MustPassword bool `yaml:"must_password" hc:"must input password to create room" env:"ROOM_MUST_PASSWORD"`
|
|
TTL string `yaml:"ttl" hc:"set how long the room will be inactive before the memory will be reclaimed"`
|
|
}
|
|
|
|
func DefaultRoomConfig() RoomConfig {
|
|
return RoomConfig{
|
|
MustPassword: false,
|
|
TTL: "48h",
|
|
}
|
|
}
|