devicerepository

package
v3.9.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package devicerepository allows to fetch device data from the Device Repository.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Fetcher fetch.Interface
}

Client provides a device repository through a fetcher.

func (Client) Brands

func (c Client) Brands() (map[string]ttnpb.EndDeviceBrand, error)

Brands fetches and parses the list of brands.

func (Client) DeviceModels

func (c Client) DeviceModels(brandID string) (map[string]ttnpb.EndDeviceModel, error)

DeviceModels fetches and parses the list of device models.

func (Client) DeviceVersions

func (c Client) DeviceVersions(brandID, modelID string) ([]ttnpb.EndDeviceVersion, error)

DeviceVersions fetches and parses the list of device versions.

Jump to

Keyboard shortcuts

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