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

Method Subscribe

pkg/rpcserver/rpcserver_test.go:170–174  ·  view source on GitHub ↗
(ids *ttnpb.ApplicationIdentifiers, srv ttnpb.AppAs_SubscribeServer)

Source from the content-addressed store, hash-verified

168}
169
170func (s *mockServer) Subscribe(ids *ttnpb.ApplicationIdentifiers, srv ttnpb.AppAs_SubscribeServer) error {
171 s.subCtx, s.subIDs = srv.Context(), ids
172 srv.Send(applicationUp)
173 return nil
174}
175
176func (s *mockServer) DownlinkQueuePush(ctx context.Context, req *ttnpb.DownlinkQueueRequest) (*emptypb.Empty, error) {
177 s.pushCtx, s.pushReq = ctx, req

Callers

nothing calls this directly

Calls 2

ContextMethod · 0.65
SendMethod · 0.65

Tested by

no test coverage detected