devicetemplates

package
v0.0.0-...-60b8695 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

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

func RegisterConverter(id string, c Converter)

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

func GetConverter(id string) Converter

GetConverter returns the converter by ID.

Jump to

Keyboard shortcuts

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