Directories ¶
Path | Synopsis |
---|---|
io/mqtt
Package mqtt implements the MQTT frontend.
|
Package mqtt implements the MQTT frontend. |
io/mqtt/topics
Package topics implements MQTT topic layouts.
|
Package topics implements MQTT topic layouts. |
io/pubsub
Package pubsub implements the go-cloud pub/sub frontend.
|
Package pubsub implements the go-cloud pub/sub frontend. |
io/pubsub/provider
Package provider implements pub/sub provider interfaces and registration.
|
Package provider implements pub/sub provider interfaces and registration. |
io/pubsub/provider/mock
Package mock implements a mock pub/sub provider using the mempubsub driver.
|
Package mock implements a mock pub/sub provider using the mempubsub driver. |
io/pubsub/provider/mqtt
Package mqtt implements the MQTT provider using the mqtt driver.
|
Package mqtt implements the MQTT provider using the mqtt driver. |
io/pubsub/provider/nats
Package nats implements the NATS provider using the natspubsub driver.
|
Package nats implements the NATS provider using the natspubsub driver. |
io/web
Package web implements the webhooks integration.
|
Package web implements the webhooks integration. |
Package auth provides methods to generate valid authorization values and to also decode them.
|
Package auth provides methods to generate valid authorization values and to also decode them. |
cluster
Package cluster contains cluster authentication-related utilities.
|
Package cluster contains cluster authentication-related utilities. |
pbkdf2
Package pbkdf2 implements the PBKDF2 algorithm method used to hash passwords.
|
Package pbkdf2 implements the PBKDF2 algorithm method used to hash passwords. |
rights
Package rights implements rights fetching and checking.
|
Package rights implements rights fetching and checking. |
cups
Package cups implements the CUPS protocol.
|
Package cups implements the CUPS protocol. |
Package cluster defines an interface for clustering network components and provides a simple implementation.
|
Package cluster defines an interface for clustering network components and provides a simple implementation. |
Package component contains the methods and structures common to all components.
|
Package component contains the methods and structures common to all components. |
Package config wraps Viper.
|
Package config wraps Viper. |
example
example cobra command with config.
|
example cobra command with config. |
tlsconfig
Package tlsconfig provides configuration for TLS clients and servers.
|
Package tlsconfig provides configuration for TLS clients and servers. |
Package crypto implements LoRaWAN crypto.
|
Package crypto implements LoRaWAN crypto. |
enddevices
Package enddevices provides functions to configure End Device claiming clients.
|
Package enddevices provides functions to configure End Device claiming clients. |
enddevices/ttjs
Package ttjs provides the claiming client implementation for The Things Join Server API.
|
Package ttjs provides the claiming client implementation for The Things Join Server API. |
Package devicerepository integrates with the Device Repository.
|
Package devicerepository integrates with the Device Repository. |
mock
Package mockdr contains the mock of a Device Repository Server.
|
Package mockdr contains the mock of a Device Repository Server. |
Package devicetemplateconverter provides device template services.
|
Package devicetemplateconverter provides device template services. |
profilefetcher
Package profilefetcher contains definitions of end-device's profile fetchers based on the VersionIDs or VendorIDs.
|
Package profilefetcher contains definitions of end-device's profile fetchers based on the VersionIDs or VendorIDs. |
Package devicetemplates implements creating templates for devices.
|
Package devicetemplates implements creating templates for devices. |
Package email provides an interface to send messages over email.
|
Package email provides an interface to send messages over email. |
mock
Package mock provides a test email provider that is used in tests.
|
Package mock provides a test email provider that is used in tests. |
sendgrid
Package sendgrid provides the implementation of an email sender using SendGrid.
|
Package sendgrid provides the implementation of an email sender using SendGrid. |
templates
Package templates is responsible for handling the email templates sent by The Things Stack.
|
Package templates is responsible for handling the email templates sent by The Things Stack. |
encoding
|
|
lorawan
Package lorawan provides LoRaWAN decoding/encoding interfaces.
|
Package lorawan provides LoRaWAN decoding/encoding interfaces. |
Package errorcontext implements a Context that can be canceled with a specific error instead of the usual context.Canceled.
|
Package errorcontext implements a Context that can be canceled with a specific error instead of the usual context.Canceled. |
Package errors implements rich errors that carry contextual information such as stack traces, causality and attributes.
|
Package errors implements rich errors that carry contextual information such as stack traces, causality and attributes. |
sentry
Package sentry converts errors to Sentry events.
|
Package sentry converts errors to Sentry events. |
Package events implements event handling through a PubSub interface.
|
Package events implements event handling through a PubSub interface. |
basic
Package basic provides a basic events PubSub implementation.
|
Package basic provides a basic events PubSub implementation. |
cloud
Package cloud implements an events.PubSub implementation that uses Go Cloud PubSub.
|
Package cloud implements an events.PubSub implementation that uses Go Cloud PubSub. |
grpc
Package grpc contains an implementation of the EventsServer, which is used to stream all events published for a set of identifiers.
|
Package grpc contains an implementation of the EventsServer, which is used to stream all events published for a set of identifiers. |
internal/eventstest
Package eventstest provides a blackbox test for events PubSub implementations.
|
Package eventstest provides a blackbox test for events PubSub implementations. |
redis
Package redis implements an events.PubSub implementation that uses Redis PubSub.
|
Package redis implements an events.PubSub implementation that uses Redis PubSub. |
Package fetch offers abstractions to fetch a file with the same method, regardless of a location (filesystem, HTTP...).
|
Package fetch offers abstractions to fetch a file with the same method, regardless of a location (filesystem, HTTP...). |
Package fillcontext implements a mechanism to fill contexts.
|
Package fillcontext implements a mechanism to fill contexts. |
Package frequencyplans contains abstractions to fetch and manipulate frequency plans.
|
Package frequencyplans contains abstractions to fetch and manipulate frequency plans. |
Package gatewayserver contains the structs and methods necessary to start a gRPC Gateway Server
|
Package gatewayserver contains the structs and methods necessary to start a gRPC Gateway Server |
scheduling
Package scheduling implements a packet scheduling that detects and avoids conflicts and enforces regional restrictions like duty-cycle and dwell time.
|
Package scheduling implements a packet scheduling that detects and avoids conflicts and enforces regional restrictions like duty-cycle and dwell time. |
upstream/mock
Package mock provides mock implementation of necessary NS interfaces for testing.
|
Package mock provides mock implementation of necessary NS interfaces for testing. |
upstream/ns
Package ns abstracts the V3 Network Server to the upstream.Handler interface.
|
Package ns abstracts the V3 Network Server to the upstream.Handler interface. |
upstream/packetbroker
Package packetbroker abstracts the Packet Broker Agent to the upstream.Handler interface.
|
Package packetbroker abstracts the Packet Broker Agent to the upstream.Handler interface. |
Package gogoproto implements conversions from well-known gogo/profobuf types.
|
Package gogoproto implements conversions from well-known gogo/profobuf types. |
Package goproto implements conversions from well-known golang/profobuf types.
|
Package goproto implements conversions from well-known golang/profobuf types. |
Package gpstime provides utilities to work with GPS time.
|
Package gpstime provides utilities to work with GPS time. |
Package i18n helps with internationalization of registered messages.
|
Package i18n helps with internationalization of registered messages. |
Package identityserver handles the database operations for The Things Stack.
|
Package identityserver handles the database operations for The Things Stack. |
blocklist
Package blocklist implements a list of forbidden IDs.
|
Package blocklist implements a list of forbidden IDs. |
bunstore
Package store implements the Identity Server store interfaces using the bun library.
|
Package store implements the Identity Server store interfaces using the bun library. |
gormstore
Package store implements the Identity Server store interfaces using GORM.
|
Package store implements the Identity Server store interfaces using GORM. |
mock
Package mockis provides a mock structure to the Identity Server.
|
Package mockis provides a mock structure to the Identity Server. |
store
Package store defines the interfaces implemented by Identity Server store implementations.
|
Package store defines the interfaces implemented by Identity Server store implementations. |
store/migrations
Package migrations contains Identity Server store migrations.
|
Package migrations contains Identity Server store migrations. |
internal
|
|
Package interop implements a LoRaWAN Backend Interfaces server and client.
|
Package interop implements a LoRaWAN Backend Interfaces server and client. |
Package joinserver provides a LoRaWAN-compliant Join Server implementation.
|
Package joinserver provides a LoRaWAN-compliant Join Server implementation. |
redis
Package redis provides Redis implementations of interfaces used by joinserver.
|
Package redis provides Redis implementations of interfaces used by joinserver. |
Package log contains all the structs to log TTN.
|
Package log contains all the structs to log TTN. |
handler/memory
Package memory implements a pkg/log.Handler that saves all entries in process memory
|
Package memory implements a pkg/log.Handler that saves all entries in process memory |
middleware/observability
Package observability implements a pkg/log.Handler that exports metrics for the logged messages.
|
Package observability implements a pkg/log.Handler that exports metrics for the logged messages. |
middleware/sentry
Package sentry implements a pkg/log.Handler that sends errors to Sentry
|
Package sentry implements a pkg/log.Handler that sends errors to Sentry |
Package messageprocessors provides interfaces and implementations for processing uplink and downlink messages.
|
Package messageprocessors provides interfaces and implementations for processing uplink and downlink messages. |
cayennelpp
Package cayennelpp contains the CayenneLPP payload formatter message processors.
|
Package cayennelpp contains the CayenneLPP payload formatter message processors. |
javascript
Package javascript contains the Javascript payload formatter message processors.
|
Package javascript contains the Javascript payload formatter message processors. |
normalizedpayload
Package normalizedpayload implements functionality for parsing and validating normalized payload.
|
Package normalizedpayload implements functionality for parsing and validating normalized payload. |
Package metrics creates the metrics registry and exposes some common metrics.
|
Package metrics creates the metrics registry and exposes some common metrics. |
Package mqtt contains MQTT-related utilities.
|
Package mqtt contains MQTT-related utilities. |
Package networkserver provides a LoRaWAN-compliant Network Server implementation.
|
Package networkserver provides a LoRaWAN-compliant Network Server implementation. |
internal
Internal package contains various Network Server utilities
|
Internal package contains various Network Server utilities |
internal/test
Package test contains testing utilities usable by all subpackages of networkserver including itself.
|
Package test contains testing utilities usable by all subpackages of networkserver including itself. |
internal/test/shared
Package test contains testing utilities usable by all subpackages of networkserver excluding itself.
|
Package test contains testing utilities usable by all subpackages of networkserver excluding itself. |
internal/time
Package time wraps "time" and allows for custom implementations of key functions.
|
Package time wraps "time" and allows for custom implementations of key functions. |
redis
Package redis provides Redis implementations of interfaces used by networkserver.
|
Package redis provides Redis implementations of interfaces used by networkserver. |
pfconfig
|
|
cpf
Package cpf implements the JSON configuration for the Common Packet Forwarder.
|
Package cpf implements the JSON configuration for the Common Packet Forwarder. |
lbslns
Package lbslns implements the JSON configuration for the LoRa Basics Station `router_config` message.
|
Package lbslns implements the JSON configuration for the LoRa Basics Station `router_config` message. |
semtechudp
Package semtechudp implements the JSON configuration for the Semtech UDP Packet Forwarder.
|
Package semtechudp implements the JSON configuration for the Semtech UDP Packet Forwarder. |
shared
Package shared contains the configuration that is common to various gateway types.
|
Package shared contains the configuration that is common to various gateway types. |
Package provisioning provides a registry and implementations of vendor-specific device provisioners.
|
Package provisioning provides a registry and implementations of vendor-specific device provisioners. |
Package qrcodegenerator provides QR code generation services.
|
Package qrcodegenerator provides QR code generation services. |
qrcode
Package qrcode provides generic interfaces to work with QR codes.
|
Package qrcode provides generic interfaces to work with QR codes. |
Package random implements goroutine-safe utilities on top of a secure random source.
|
Package random implements goroutine-safe utilities on top of a secure random source. |
Package redis provides a general Redis client and utilities.
|
Package redis provides a general Redis client and utilities. |
codec
Package codec provides a codec, which encodes and decodes protocol buffers stored in Redis to/from JSON.
|
Package codec provides a codec, which encodes and decodes protocol buffers stored in Redis to/from JSON. |
Package rpcclient contains the default options for TTN gRPC clients.
|
Package rpcclient contains the default options for TTN gRPC clients. |
Package rpcmetadata contains utilities for transporting common request metadata over gRPC.
|
Package rpcmetadata contains utilities for transporting common request metadata over gRPC. |
discover
Package discover implements a gRPC discovery middleware.
|
Package discover implements a gRPC discovery middleware. |
fillcontext
Package fillcontext implements a gRPC middleware that fills global context into a call context.
|
Package fillcontext implements a gRPC middleware that fills global context into a call context. |
hooks
Package hooks implements a gRPC middleware that executes service and method hooks.
|
Package hooks implements a gRPC middleware that executes service and method hooks. |
rpclog
Package rpclog implements a gRPC logging middleware.
|
Package rpclog implements a gRPC logging middleware. |
sentry
Package sentry implements gRPC middleware that forwards errors in RPCs to Sentry
|
Package sentry implements gRPC middleware that forwards errors in RPCs to Sentry |
validator
Package validator implements a gRPC middleware that defines custom validators that are invoked when the service is called.
|
Package validator implements a gRPC middleware that defines custom validators that are invoked when the service is called. |
warning
Package warning communicates warnings over gRPC headers.
|
Package warning communicates warnings over gRPC headers. |
Package rpcserver initializes The Things Network's base gRPC server
|
Package rpcserver initializes The Things Network's base gRPC server |
Package scripting provides a generic abstraction layer for running scripts at runtime.
|
Package scripting provides a generic abstraction layer for running scripts at runtime. |
javascript
Package javascript implements a Javascript scripting engine.
|
Package javascript implements a Javascript scripting engine. |
specification
|
|
macspec
Package macspec provides access to LoRaWAN MAC specification-specific settings.
|
Package macspec provides access to LoRaWAN MAC specification-specific settings. |
Package toa provides methods for computing a LoRaWAN packet's time-on-air.
|
Package toa provides methods for computing a LoRaWAN packet's time-on-air. |
Package ttnpb is a reverse proxy.
|
Package ttnpb is a reverse proxy. |
Package types contains basic types that are used in The Things Network's protobuf messages.
|
Package types contains basic types that are used in The Things Network's protobuf messages. |
Package unique provides functionality for working with unique identifiers of entities within a context.
|
Package unique provides functionality for working with unique identifiers of entities within a context. |
Package util contains various utilities.
|
Package util contains various utilities. |
byteutil
Package byteutil provides utilities for working with bytes using little endian binary encoding.
|
Package byteutil provides utilities for working with bytes using little endian binary encoding. |
lora
Package lora contains LoRa modulation utilities.
|
Package lora contains LoRa modulation utilities. |
test
Package test provides various testing utilities.
|
Package test provides various testing utilities. |
test/assertions
Package assertions contains custom assertions compatible with github.com/smartystreets/assertions.
|
Package assertions contains custom assertions compatible with github.com/smartystreets/assertions. |
test/assertions/should
Package should wraps assertions in github.com/smartystreets/assertions and util/test/assertions.
|
Package should wraps assertions in github.com/smartystreets/assertions and util/test/assertions. |
Package version contains version and build variables set by the CI process.
|
Package version contains version and build variables set by the CI process. |
Package webmiddleware provides middleware for http Handlers.
|
Package webmiddleware provides middleware for http Handlers. |
Click to show internal directories.
Click to hide internal directories.