grpc

package
v3.32.1 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 13 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 GetEndDeviceIdentifiersFunc added in v3.16.2

type GetEndDeviceIdentifiersFunc func(ctx context.Context, ids *ttnpb.EndDeviceIdentifiers) (*ttnpb.EndDeviceIdentifiers, error)

GetEndDeviceIdentifiersFunc retrieves the end device identifiers including the EUIs and DevAddr.

type Option

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

Option represents an option for the gRPC frontend.

func WithGetEndDeviceIdentifiers added in v3.16.2

func WithGetEndDeviceIdentifiers(f GetEndDeviceIdentifiersFunc) Option

WithGetEndDeviceIdentifiers sets the end device identifiers retriever 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