()
| 41 | } |
| 42 | |
| 43 | func (s *Server) validate() error { |
| 44 | if s.server == nil { |
| 45 | return errors.New("server must be specified") |
| 46 | } |
| 47 | if s.tlser != nil { |
| 48 | return s.tlser.Validate() |
| 49 | } |
| 50 | return nil |
| 51 | } |
| 52 | |
| 53 | // Run starts the server according to the provided configuration. |
| 54 | func (s *Server) Run() error { |