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

Function withDefaultModelFields

pkg/devicerepository/grpc.go:33–35  ·  view source on GitHub ↗

withDefaultModelFields appends default ttnpb.EndDeviceModel fields.

(paths []string)

Source from the content-addressed store, hash-verified

31
32// withDefaultModelFields appends default ttnpb.EndDeviceModel fields.
33func withDefaultModelFields(paths []string) []string {
34 return ttnpb.AddFields(paths, "brand_id", "model_id")
35}
36
37// withDefaultBrandFields appends default ttnpb.EndDeviceBrand fields.
38func withDefaultBrandFields(paths []string) []string {

Callers 2

ListModelsMethod · 0.85
GetModelMethod · 0.85

Calls 1

AddFieldsFunction · 0.92

Tested by

no test coverage detected