Documentation ¶
Overview ¶
Package devicetemplates implements creating templates for devices.
Index ¶
Constants ¶
View Source
const TTS = "the-things-stack"
TTS is the device template converter id.
Variables ¶
This section is empty.
Functions ¶
func RegisterConverter ¶
RegisterConverter registers the given converter. Existing registrations with the same ID will be overwritten. This function is not goroutine-safe.
Types ¶
type Converter ¶
type Converter interface { Format() *ttnpb.EndDeviceTemplateFormat Convert(context.Context, io.Reader, chan<- *ttnpb.EndDeviceTemplate) error }
Converter converts a binary file in end device templates.
func GetConverter ¶
GetConverter returns the converter by ID.
Click to show internal directories.
Click to hide internal directories.