mockdr

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: 3 Imported by: 0

Documentation

Overview

Package mockdr contains the mock of a Device Repository Server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockDR

type MockDR struct {
	Err                     error
	ListEndDeviceBrandsResp *ttnpb.ListEndDeviceBrandsResponse
	EndDeviceBrand          *ttnpb.EndDeviceBrand
	ListEndDeviceModelsResp *ttnpb.ListEndDeviceModelsResponse
	EndDeviceModel          *ttnpb.EndDeviceModel
	EndDeviceTemplate       *ttnpb.EndDeviceTemplate
	MessagePayloadDecoder   *ttnpb.MessagePayloadDecoder
	MessagePayloadEncoder   *ttnpb.MessagePayloadEncoder
}

MockDR contains the response that it will provide when a client communicates with the server address.

func New

func New() *MockDR

New returns a mock of the Device Repository client.

func (*MockDR) GetBrand

GetBrand mock method.

func (*MockDR) GetDownlinkDecoder

GetDownlinkDecoder mock method.

func (*MockDR) GetDownlinkEncoder

GetDownlinkEncoder mock method.

func (*MockDR) GetModel

GetModel mock method.

func (*MockDR) GetTemplate

GetTemplate mock method.

func (*MockDR) GetUplinkDecoder

GetUplinkDecoder mock method.

func (*MockDR) ListBrands

ListBrands mock method.

func (*MockDR) ListModels

ListModels mock method.

Jump to

Keyboard shortcuts

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