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)) }