aranyagoconst

package
Version: v0.3.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// max gRPC message size
	// https://github.com/grpc/grpc.github.io/issues/371
	MaxGRPCDataSize = 64 * 1024

	// max MQTT message size (make it compatible with aws mqtt)
	MaxMQTTDataSize = MaxAwsIoTCoreC2DDataSize

	// https://docs.aws.amazon.com/general/latest/gr/aws_service_limits.html#protocol
	MaxAwsIoTCoreD2CDataSize = 128 * 1024 // device to cloud
	MaxAwsIoTCoreC2DDataSize = 128 * 1024 // cloud to device

	// https://docs.microsoft.com/en-us/azure/iot-hub/iot-hub-devguide-quotas-throttling
	MaxAzureIoTHubD2CDataSize = 256 * 1024 // device to cloud
	MaxAzureIoTHubC2DDataSize = 64 * 1024  // cloud to device

	// https://cloud.google.com/iot/quotas
	MaxGCPIoTCoreD2CDataSize = 256 * 1024 // device to cloud
	MaxGCPIoTCoreC2DDataSize = 256 * 1024 // cloud to device

	// max CoAP message (will split into chunks)
	MaxCoAPDataSize = 64 * 1024

	MaxNatsDataSize = 1024 * 1024
)
View Source
const (
	VariantAzureIoTHub = "azure-iot-hub"
	VariantGCPIoTCore  = "gcp-iot-core"
	VariantAWSIoTCore  = "aws-iot-core"
)
View Source
const (
	ConnectivityMethodGRPC = "grpc"
	ConnectivityMethodMQTT = "mqtt"
	ConnectivityMethodCoAP = "coap"
)
View Source
const (
	HeaderSessionID      = "X-Aranya-Session-ID"
	HeaderMaxPayloadSize = "X-Aranya-Max-Payload-Size"
)
View Source
const (
	TimeLayout = time.RFC3339Nano
)

Variables

This section is empty.

Functions

func AMQPTopics

func AMQPTopics(ns string) (cmdTopic, msgTopic, statusTopic string)

func CoAPTopics

func CoAPTopics(ns string) (cmdPath, msgPath, statusPath string)

func MQTTTopics

func MQTTTopics(ns string) (cmdTopic, msgTopic, statusTopic string)

func NatsTopics added in v0.2.6

func NatsTopics(ns string) (cmdTopic, msgTopic, statusTopic string)

Types

type CustomPortForwardOptions added in v0.3.3

type CustomPortForwardOptions struct {
	Network string `json:"network"`
	Address string `json:"address"`
	Port    int32  `json:"port"`
	// is packet stream
	Packet bool `json:"packet"`
}

Jump to

Keyboard shortcuts

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