ttigw

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: 33 Imported by: 0

Documentation

Overview

Package ttigw implements The Things Industries protocol for gateways.

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Config{
	WSPingInterval:      30 * time.Second,
	MissedPongThreshold: 2,
}

DefaultConfig is the default configuration for The Things Industries gateway protocol frontend.

Functions

This section is empty.

Types

type Config

type Config struct {
	WSPingInterval      time.Duration `name:"ws-ping-interval" description:"Interval to send websocket ping messages"`
	MissedPongThreshold int           `` //nolint:lll
	/* 162-byte string literal not displayed */
}

Config defines the The Things Industries gateway protocol configuration of the Gateway Server.

type Frontend

type Frontend struct {
	http.Handler
	// contains filtered or unexported fields
}

Frontend implements the The Things Industries V1 gateway frontend.

func New

func New(ctx context.Context, server io.Server, cfg Config) (*Frontend, error)

New returns a new The Things Industries V1 gateway frontend.

func (*Frontend) DutyCycleStyle

func (*Frontend) DutyCycleStyle() scheduling.DutyCycleStyle

DutyCycleStyle implements io.Frontend.

func (*Frontend) Protocol

func (*Frontend) Protocol() string

Protocol implements io.Frontend.

func (*Frontend) SupportsDownlinkClaim

func (*Frontend) SupportsDownlinkClaim() bool

SupportsDownlinkClaim implements io.Frontend.

Jump to

Keyboard shortcuts

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