mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-21 05:43:09 -06:00
19 lines
513 B
Go
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))
|
|
}
|