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, }, }, UplinkStorage: applicationserver.UplinkStorageConfig{ Limit: 16, }, 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, Timeout: 10 * time.Second, }, }, Formatters: applicationserver.FormattersConfig{ MaxParameterLength: 40960, }, }
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.
Click to show internal directories.
Click to hide internal directories.