devicetemplates

package
v3.7.3 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package devicetemplates implements creating templates for devices.

Index

Constants

This section is empty.

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