shared

package
v3.10.5 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultApplicationServerConfig = applicationserver.Config{
	LinkMode: "all",
	MQTT: config.MQTT{
		Listen:           ":1883",
		ListenTLS:        ":8883",
		PublicAddress:    fmt.Sprintf("%s:1883", shared.DefaultPublicHost),
		PublicTLSAddress: fmt.Sprintf("%s:8883", shared.DefaultPublicHost),
	},
	Webhooks: applicationserver.WebhooksConfig{
		Templates: DefaultWebhookTemplatesConfig,
		Target:    "direct",
		Timeout:   5 * time.Second,
		QueueSize: 16,
		Workers:   16,
		Downlinks: web.DownlinksConfig{PublicAddress: shared.DefaultPublicURL + "/api/v3"},
	},
	EndDeviceFetcher: applicationserver.EndDeviceFetcherConfig{
		Cache: applicationserver.EndDeviceFetcherCacheConfig{
			Enable: true,
			TTL:    5 * time.Minute,
		},
	},
}

DefaultApplicationServerConfig is the default configuration for the Application Server.

View Source
var DefaultWebhookTemplatesConfig = web.TemplatesConfig{
	URL: "https://raw.githubusercontent.com/TheThingsNetwork/lorawan-webhook-templates/master",
}

DefaultWebhookTemplatesConfig is the default configuration for the Webhook templates.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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