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

Function registerGatewayConnect

pkg/gatewayserver/observability.go:311–318  ·  view source on GitHub ↗
(
	ctx context.Context,
	ids *ttnpb.GatewayIdentifiers,
	stats *ttnpb.GatewayConnectionStats,
)

Source from the content-addressed store, hash-verified

309}
310
311func registerGatewayConnect(
312 ctx context.Context,
313 ids *ttnpb.GatewayIdentifiers,
314 stats *ttnpb.GatewayConnectionStats,
315) {
316 events.Publish(evtGatewayConnect.NewWithIdentifiersAndData(ctx, ids, stats))
317 gsMetrics.gatewaysConnected.WithLabelValues(ctx, stats.Protocol).Inc()
318}
319
320func registerGatewayDisconnect(ctx context.Context, ids *ttnpb.GatewayIdentifiers, protocol string, err error) {
321 events.Publish(evtGatewayDisconnect.NewWithIdentifiersAndData(ctx, ids, err))

Callers 1

ConnectMethod · 0.85

Calls 3

PublishFunction · 0.92
WithLabelValuesMethod · 0.45

Tested by

no test coverage detected