ddot

package
v0.0.0-...-4829687 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package ddot connects to Washington DC DDOT's publicly accessible MQTT server instance.

Index

Constants

View Source
const MQTTServerUrl = "wss://b-8c165eea-0974-40be-9e62-ad394d480541-1.mq.us-east-1.amazonaws.com:61619//"

Variables

This section is empty.

Functions

func CreateRandomClientID

func CreateRandomClientID() string

Types

type CameraInfo

type CameraInfo struct {
	Id           string
	Name         string
	Latitude     float32
	Longitude    float32
	HLSStreamUrl string
}

type Client

type Client interface {
	GetCameras() []CameraInfo
	GetFfmpegUrl(cameraId string) string
}

func CreateClient

func CreateClient() (Client, error)

type DDOTTopic

type DDOTTopic string
const (
	TopicCamera DDOTTopic = "DDOT/Camera"
)

Jump to

Keyboard shortcuts

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