packetbroker

package
v3.13.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package packetbroker abstracts the Packet Broker Agent to the upstream.Handler interface.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cluster

type Cluster interface {
	GetPeerConn(ctx context.Context, role ttnpb.ClusterRole, ids cluster.EntityIdentifiers) (*grpc.ClientConn, error)
	WithClusterAuth() grpc.CallOption
}

Cluster represents the interface the cluster.

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler is the upstream handler.

func NewHandler

func NewHandler(ctx context.Context, cluster Cluster, devAddrPrefixes []types.DevAddrPrefix) *Handler

NewHandler returns a new upstream handler.

func (*Handler) ConnectGateway

ConnectGateway implements upstream.Handler.

func (*Handler) GetDevAddrPrefixes

func (h *Handler) GetDevAddrPrefixes() []types.DevAddrPrefix

GetDevAddrPrefixes implements upstream.Handler.

func (*Handler) HandleStatus

HandleStatus implements upstream.Handler.

func (*Handler) HandleTxAck added in v3.12.0

HandleTxAck implements upstream.Handler.

HandleUplink implements upstream.Handler.

func (*Handler) Setup

func (h *Handler) Setup(context.Context) error

Setup implements upstream.Handler.

Jump to

Keyboard shortcuts

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