()
| 22 | ) |
| 23 | |
| 24 | func ExampleRequireApplication() { |
| 25 | var ( // Assume these come from a hypothetical Set RPC call. |
| 26 | ctx context.Context |
| 27 | dev ttnpb.EndDevice |
| 28 | ) |
| 29 | |
| 30 | if err := rights.RequireApplication(ctx, dev.Ids.ApplicationIds, ttnpb.Right_RIGHT_APPLICATION_DEVICES_WRITE); err != nil { |
| 31 | // return nil, err |
| 32 | } |
| 33 | } |
nothing calls this directly
no test coverage detected