Documentation ¶
Overview ¶
Package mockdr contains the mock of a Device Repository Server.
Index ¶
- type MockDR
- func (mdr *MockDR) GetBrand(context.Context, *ttnpb.GetEndDeviceBrandRequest, ...grpc.CallOption) (*ttnpb.EndDeviceBrand, error)
- func (mdr *MockDR) GetDownlinkDecoder(context.Context, *ttnpb.GetPayloadFormatterRequest, ...grpc.CallOption) (*ttnpb.MessagePayloadDecoder, error)
- func (mdr *MockDR) GetDownlinkEncoder(context.Context, *ttnpb.GetPayloadFormatterRequest, ...grpc.CallOption) (*ttnpb.MessagePayloadEncoder, error)
- func (mdr *MockDR) GetModel(context.Context, *ttnpb.GetEndDeviceModelRequest, ...grpc.CallOption) (*ttnpb.EndDeviceModel, error)
- func (mdr *MockDR) GetTemplate(context.Context, *ttnpb.GetTemplateRequest, ...grpc.CallOption) (*ttnpb.EndDeviceTemplate, error)
- func (mdr *MockDR) GetUplinkDecoder(context.Context, *ttnpb.GetPayloadFormatterRequest, ...grpc.CallOption) (*ttnpb.MessagePayloadDecoder, error)
- func (mdr *MockDR) ListBrands(context.Context, *ttnpb.ListEndDeviceBrandsRequest, ...grpc.CallOption) (*ttnpb.ListEndDeviceBrandsResponse, error)
- func (mdr *MockDR) ListModels(context.Context, *ttnpb.ListEndDeviceModelsRequest, ...grpc.CallOption) (*ttnpb.ListEndDeviceModelsResponse, error)
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 (*MockDR) GetBrand ¶
func (mdr *MockDR) GetBrand( context.Context, *ttnpb.GetEndDeviceBrandRequest, ...grpc.CallOption, ) (*ttnpb.EndDeviceBrand, error)
GetBrand mock method.
func (*MockDR) GetDownlinkDecoder ¶
func (mdr *MockDR) GetDownlinkDecoder( context.Context, *ttnpb.GetPayloadFormatterRequest, ...grpc.CallOption, ) (*ttnpb.MessagePayloadDecoder, error)
GetDownlinkDecoder mock method.
func (*MockDR) GetDownlinkEncoder ¶
func (mdr *MockDR) GetDownlinkEncoder( context.Context, *ttnpb.GetPayloadFormatterRequest, ...grpc.CallOption, ) (*ttnpb.MessagePayloadEncoder, error)
GetDownlinkEncoder mock method.
func (*MockDR) GetModel ¶
func (mdr *MockDR) GetModel( context.Context, *ttnpb.GetEndDeviceModelRequest, ...grpc.CallOption, ) (*ttnpb.EndDeviceModel, error)
GetModel mock method.
func (*MockDR) GetTemplate ¶
func (mdr *MockDR) GetTemplate( context.Context, *ttnpb.GetTemplateRequest, ...grpc.CallOption, ) (*ttnpb.EndDeviceTemplate, error)
GetTemplate mock method.
func (*MockDR) GetUplinkDecoder ¶
func (mdr *MockDR) GetUplinkDecoder( context.Context, *ttnpb.GetPayloadFormatterRequest, ...grpc.CallOption, ) (*ttnpb.MessagePayloadDecoder, error)
GetUplinkDecoder mock method.
func (*MockDR) ListBrands ¶
func (mdr *MockDR) ListBrands( context.Context, *ttnpb.ListEndDeviceBrandsRequest, ...grpc.CallOption, ) (*ttnpb.ListEndDeviceBrandsResponse, error)
ListBrands mock method.
func (*MockDR) ListModels ¶
func (mdr *MockDR) ListModels( context.Context, *ttnpb.ListEndDeviceModelsRequest, ...grpc.CallOption, ) (*ttnpb.ListEndDeviceModelsResponse, error)
ListModels mock method.
Click to show internal directories.
Click to hide internal directories.