grpc

package
v3.13.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 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 added in v3.11.2

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 added in v3.11.2

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 added in v3.11.3

func WithPayloadProcessor(processor messageprocessors.PayloadProcessor) Option

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

func WithSkipPayloadCrypto added in v3.12.2

func WithSkipPayloadCrypto(f SkipPayloadCryptoFunc) Option

WithSkipPayloadCrypto sets the skip payload crypto predicate that will be used by the gRPC frontend.

type SkipPayloadCryptoFunc added in v3.12.2

type SkipPayloadCryptoFunc func(ctx context.Context, ids ttnpb.EndDeviceIdentifiers) (bool, error)

SkipPayloadCryptoFunc is a function that checks if the end device should skip payload crypto operations.

Jump to

Keyboard shortcuts

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