shared

package
v0.0.0-...-60b8695 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultApplicationServerConfig = applicationserver.Config{
	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{
		Timeout: 5 * time.Second,
		Cache: applicationserver.EndDeviceFetcherCacheConfig{
			Enable: true,
			TTL:    5 * time.Minute,
		},
		CircuitBreaker: applicationserver.EndDeviceFetcherCircuitBreakerConfig{
			Enable:    true,
			Threshold: 10,
			Timeout:   15 * time.Minute,
		},
	},
	Distribution: applicationserver.DistributionConfig{
		Timeout: time.Minute,
	},
	PubSub: applicationserver.PubSubConfig{
		Providers: map[string]string{
			"mqtt": "enabled",
			"nats": "enabled",
		},
	},
	Packages: applicationserver.ApplicationPackagesConfig{
		Config: packages.Config{
			Workers: 16,
		},
	},
}

DefaultApplicationServerConfig is the default configuration for the Application Server.

View Source
var DefaultWebhookTemplatesConfig = web.TemplatesConfig{
	Directory: "/srv/ttn-lorawan/lorawan-webhook-templates",
	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