MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / WithConfig

Function WithConfig

pkg/gatewayconfigurationserver/ttkg/server.go:75–79  ·  view source on GitHub ↗

WithConfig overrides the Server's configuration for The Things Gateway.

(config Config)

Source from the content-addressed store, hash-verified

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

Callers 3

NewFunction · 0.92
TestSetTTKGFirmwareURLFunction · 0.85
TestInferMQTTAddressFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestSetTTKGFirmwareURLFunction · 0.68
TestInferMQTTAddressFunction · 0.68