Method
Subscribe
(id *ttnpb.ApplicationIdentifiers, stream ttnpb.AppAs_SubscribeServer)
Source from the content-addressed store, hash-verified
| 47 | } |
| 48 | |
| 49 | func (as *asImplementation) Subscribe(id *ttnpb.ApplicationIdentifiers, stream ttnpb.AppAs_SubscribeServer) error { |
| 50 | if err := clusterauth.Authorized(stream.Context()); err != nil { |
| 51 | return err |
| 52 | } |
| 53 | for { |
| 54 | select { |
| 55 | case <-stream.Context().Done(): |
| 56 | return nil |
| 57 | case up := <-as.up: |
| 58 | stream.Send(up) |
| 59 | } |
| 60 | } |
| 61 | } |
| 62 | |
| 63 | type gsImplementation struct { |
| 64 | ttnpb.UnimplementedGsServer |
Callers
nothing calls this directly
Tested by
no test coverage detected