dendrite/internal/config/config_eduserver.go
Neil Alexander c782197eed
Updates
2020-08-11 09:35:50 +01:00

19 lines
513 B
Go

package config
type EDUServer struct {
Matrix *Global `json:"-"`
Listen Address `json:"Listen" comment:"Listen address for this component."`
Bind Address `json:"Bind" comment:"Bind address for this component."`
}
func (c *EDUServer) Defaults() {
c.Listen = "localhost:7778"
c.Bind = "localhost:7778"
}
func (c *EDUServer) Verify(configErrs *ConfigErrors, isMonolith bool) {
checkNotEmpty(configErrs, "EDUServer.Listen", string(c.Listen))
checkNotEmpty(configErrs, "EDUServer.Bind", string(c.Bind))
}