devicerepository

package
v3.30.1 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package devicerepository integrates with the Device Repository.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v3.11.0

type Config struct {
	Store StoreConfig `name:"store"`

	Source    string `name:"source" description:"Device Repository Source (directory)"`
	Directory string `name:"directory" description:"OS filesystem directory, which contains the Device Repository"`

	AssetsBaseURL string `name:"assets-base-url" description:"The base URL for Device Repository assets"`
}

Config represents the DeviceRepository configuration.

func (Config) Initialize added in v3.11.0

func (c Config) Initialize(ctx context.Context, blobConf config.BlobConfig, overwrite bool) error

Initialize sets up the Device Repository.

func (Config) NewStore added in v3.11.0

func (c Config) NewStore(ctx context.Context, blobConf config.BlobConfig) (store.Store, error)

NewStore creates a new Store for end devices.

type DeviceRepository added in v3.11.0

type DeviceRepository struct {
	ttnpb.UnimplementedDeviceRepositoryServer

	*component.Component
	// contains filtered or unexported fields
}

DeviceRepository implements the Device Repository component.

The Device Repository component exposes the DeviceRepository service.

func New added in v3.11.0

func New(c *component.Component, conf *Config) (*DeviceRepository, error)

New returns a new *DeviceRepository.

func (*DeviceRepository) Context added in v3.11.0

func (dr *DeviceRepository) Context() context.Context

Context returns the context of the Device Repository.

func (*DeviceRepository) GetBrand added in v3.11.0

GetBrand implements the ttnpb.DeviceRepositoryServer interface.

func (*DeviceRepository) GetDownlinkDecoder added in v3.11.0

GetDownlinkDecoder implements the ttnpb.DeviceRepositoryServer interface.

func (*DeviceRepository) GetDownlinkEncoder added in v3.11.0

GetDownlinkEncoder implements the ttnpb.DeviceRepositoryServer interface.

func (*DeviceRepository) GetModel added in v3.11.0

GetModel implements the ttnpb.DeviceRepositoryServer interface.

func (*DeviceRepository) GetTemplate added in v3.11.0

GetTemplate implements the ttnpb.DeviceRepositoryServer interface.

func (*DeviceRepository) GetUplinkDecoder added in v3.11.0

GetUplinkDecoder implements the ttnpb.DeviceRepositoryServer interface.

func (*DeviceRepository) ListBrands added in v3.11.0

ListBrands implements the ttnpb.DeviceRepositoryServer interface.

func (*DeviceRepository) ListModels added in v3.11.0

ListModels implements the ttnpb.DeviceRepositoryServer interface.

func (*DeviceRepository) RegisterHandlers added in v3.11.0

func (dr *DeviceRepository) RegisterHandlers(s *runtime.ServeMux, conn *grpc.ClientConn)

RegisterHandlers registers gRPC handlers.

func (*DeviceRepository) RegisterServices added in v3.11.0

func (dr *DeviceRepository) RegisterServices(s *grpc.Server)

RegisterServices registers services provided by dr at s.

func (*DeviceRepository) Roles added in v3.11.0

func (*DeviceRepository) Roles() []ttnpb.ClusterRole

Roles returns the roles that the Device Repository fulfills.

type StoreConfig added in v3.11.0

type StoreConfig struct {
	Store store.Store `name:"-"`

	Bleve bleve.Config `name:"bleve"`
}

StoreConfig represents configuration for the Device Repository store.

Directories

Path Synopsis
Package mockdr contains the mock of a Device Repository Server.
Package mockdr contains the mock of a Device Repository Server.

Jump to

Keyboard shortcuts

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