NetworkServer implements the Network Server component. The Network Server exposes the GsNs, AsNs, DeviceRegistry and ApplicationDownlinkQueue services.
| 149 | // |
| 150 | // The Network Server exposes the GsNs, AsNs, DeviceRegistry and ApplicationDownlinkQueue services. |
| 151 | type 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. |
| 199 | type Option func(ns *NetworkServer) |
nothing calls this directly
no outgoing calls
no test coverage detected