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

Struct NetworkServer

pkg/networkserver/networkserver.go:151–196  ·  view source on GitHub ↗

NetworkServer implements the Network Server component. The Network Server exposes the GsNs, AsNs, DeviceRegistry and ApplicationDownlinkQueue services.

Source from the content-addressed store, hash-verified

149//
150// The Network Server exposes the GsNs, AsNs, DeviceRegistry and ApplicationDownlinkQueue services.
151type NetworkServer struct {
152 ttnpb.UnimplementedAsNsServer
153 ttnpb.UnimplementedGsNsServer
154 ttnpb.UnimplementedNsEndDeviceRegistryServer
155 ttnpb.UnimplementedNsServer
156
157 *component.Component
158 ctx context.Context
159
160 devices DeviceRegistry
161 macSettingsProfiles MACSettingsProfileRegistry
162
163 batchDevices ttnpb.NsEndDeviceBatchRegistryServer
164 relayConfiguration ttnpb.NsRelayConfigurationServiceServer
165 macSettingsProfile ttnpb.NsMACSettingsProfileRegistryServer
166
167 netID netIDFunc
168 nsID nsIDFunc
169 clusterID string
170 newDevAddr newDevAddrFunc
171 devAddrPrefixes devAddrPrefixesFunc
172
173 applicationUplinks ApplicationUplinkQueue
174
175 downlinkTasks DownlinkTaskQueue
176 downlinkPriorities DownlinkPriorities
177 pendingDownlinkTasks DownlinkTaskQueue
178
179 deduplicationWindow windowDurationFunc
180 collectionWindow windowDurationFunc
181
182 defaultMACSettings *ttnpb.MACSettings
183
184 interopClient InteropClient
185
186 uplinkDeduplicator UplinkDeduplicator
187
188 deviceKEKLabel string
189 downlinkQueueCapacity int
190
191 scheduledDownlinkMatcher ScheduledDownlinkMatcher
192
193 uplinkSubmissionPool workerpool.WorkerPool[[]*ttnpb.ApplicationUp]
194
195 maxConfNbTrans uint32
196}
197
198// Option configures the NetworkServer.
199type Option func(ns *NetworkServer)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected