registry

package
v3.32.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package registry contains commonly used device registry functionality.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UniqueEUIViolationErr added in v3.27.0

func UniqueEUIViolationErr(_ context.Context, joinEUI, devEUI types.EUI64, uid string) error

UniqueEUIViolationErr creates a unique EUI violation error with the given UID.

Types

type ReplacedEndDeviceField

type ReplacedEndDeviceField struct {
	Old          string
	New          string
	GetTransform func(dev *ttnpb.EndDevice)
	SetTransform func(dev *ttnpb.EndDevice, useOld, useNew bool) error
}

ReplacedEndDeviceField provides how to transform an old End Device field to a new field.

type ReplacedEndDeviceFieldMatch

type ReplacedEndDeviceFieldMatch struct {
	ReplacedEndDeviceField
	MatchedOld bool
	MatchedNew bool
}

ReplacedEndDeviceFieldMatch provides information about an End Device field replacement based on usage of the old name, new name or both.

func MatchReplacedEndDeviceFields

func MatchReplacedEndDeviceFields(paths []string, replaced []ReplacedEndDeviceField) ([]string, []ReplacedEndDeviceFieldMatch)

MatchReplacedEndDeviceFields returns a set of ReplacedEndDeviceFieldMatch based on usage by the given paths.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL