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

Method JoinRequest

pkg/component/interop_test.go:43–58  ·  view source on GitHub ↗
(ctx context.Context, req *interop.JoinReq)

Source from the content-addressed store, hash-verified

41}
42
43func (m mockInterop) JoinRequest(ctx context.Context, req *interop.JoinReq) (*interop.JoinAns, error) {
44 ansHeader, err := req.AnswerHeader()
45 if err != nil {
46 return nil, err
47 }
48 return &interop.JoinAns{
49 JsNsMessageHeader: interop.JsNsMessageHeader{
50 MessageHeader: ansHeader,
51 SenderID: req.ReceiverID,
52 ReceiverID: req.SenderID,
53 },
54 Result: interop.Result{
55 ResultCode: interop.ResultSuccess,
56 },
57 }, nil
58}
59
60func (m mockInterop) AppSKeyRequest(ctx context.Context, req *interop.AppSKeyReq) (*interop.AppSKeyAns, error) {
61 ansHeader, err := req.AnswerHeader()

Callers

nothing calls this directly

Calls 1

AnswerHeaderMethod · 0.80

Tested by

no test coverage detected