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

Function registerAcceptJoin

pkg/joinserver/observability.go:118–121  ·  view source on GitHub ↗
(ctx context.Context, dev *ttnpb.EndDevice, msg *ttnpb.JoinRequest)

Source from the content-addressed store, hash-verified

116}
117
118func registerAcceptJoin(ctx context.Context, dev *ttnpb.EndDevice, msg *ttnpb.JoinRequest) {
119 events.Publish(evtAcceptJoin.NewWithIdentifiersAndData(ctx, dev.Ids, nil))
120 jsMetrics.joinAccepted.WithLabelValues(ctx, types.MustNetID(msg.NetId).OrZero().String()).Inc()
121}
122
123func registerRejectJoin(ctx context.Context, req *ttnpb.JoinRequest, err error) {
124 events.Publish(evtRejectJoin.NewWithIdentifiersAndData(ctx, nil, err))

Callers 1

HandleJoinMethod · 0.85

Calls 6

PublishFunction · 0.92
MustNetIDFunction · 0.92
StringMethod · 0.65
WithLabelValuesMethod · 0.45
OrZeroMethod · 0.45

Tested by

no test coverage detected