WithConfig overrides the Server's configuration for The Things Gateway.
(config Config)
| 73 | |
| 74 | // WithConfig overrides the Server's configuration for The Things Gateway. |
| 75 | func WithConfig(config Config) Option { |
| 76 | return func(s *Server) { |
| 77 | s.ttgConfig = config |
| 78 | } |
| 79 | } |
| 80 | |
| 81 | // RegisterRoutes implements the web.Registerer interface. |
| 82 | func (s *Server) RegisterRoutes(server *web.Server) { |
no outgoing calls