grpc

package
v0.0.0-...-60b8695 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(server io.Server, opts ...Option) ttnpb.AppAsServer

New returns a new gRPC frontend.

Types

type EndDeviceFetcher

type EndDeviceFetcher interface {
	Get(ctx context.Context, ids ttnpb.EndDeviceIdentifiers, fieldMaskPaths ...string) (*ttnpb.EndDevice, error)
}

EndDeviceFetcher retrieves end device information from identifiers.

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option represents an option for the gRPC frontend.

func WithEndDeviceFetcher

func WithEndDeviceFetcher(f EndDeviceFetcher) Option

WithEndDeviceFetcher sets the EndDeviceFetcher that will be used by the gRPC frontend.

func WithMQTTConfigProvider

func WithMQTTConfigProvider(provider config.MQTTConfigProvider) Option

WithMQTTConfigProvider sets the MQTT configuration provider for the gRPC frontend.

func WithPayloadProcessor

func WithPayloadProcessor(processor messageprocessors.PayloadProcessor) Option

WithPayloadProcessor sets the PayloadProcessor that will be used by the gRPC frontend.

Jump to

Keyboard shortcuts

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