Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateEventRequest ¶
type DeviceStatusResponse ¶
type DeviceStatusResponse struct {
IsRegistered bool `json:"isRegistered"`
}
type EventResponse ¶
type EventResponse struct { ID string `json:"id"` TriggeredBy string `json:"triggeredBy"` StartTime int64 `json:"startTime"` // Unix timestamp Location database.GeoJSONPoint `json:"location"` // You may want to further process this if needed Radius float64 `json:"radius"` Status string `json:"status"` Streams []StreamResponse `json:"streams"` }
type LocationUpdateRequest ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(config *config.HTTPConfig, rtmpServer *rtmp.Server, mq *mqttclient.MQTTClient, db *database.MongoDB) *Server
type StreamResponse ¶
type StreamResponse struct { ID string `json:"id"` Title string `json:"title"` PlaybackUrl string `json:"playbackUrl"` RTMPUrl string `json:"rtmpUrl"` DeviceId string `json:"deviceId"` Distance float64 `json:"distance"` Location database.GeoJSONPoint `json:"location"` StartTime int64 `json:"startTime"` // Unix timestamp EndTime *int64 `json:"endTime,omitempty"` // Unix timestamp Status string `json:"status"` }
Click to show internal directories.
Click to hide internal directories.