iot-eyecatcher-broker

command module
v0.0.0-...-8119bb9 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2018 License: MIT Imports: 7 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

iot-eyecatcher-broker

The websocket message broker for the IoT eye catcher project.

Simple message broker without persistence written in golang.

Build and run

To build the docker image call:

docker build -t iot-eyecatcher-broker:latest .

To run the docker image call:

docker run -e USERNAME={username] -e PASSWORD={password} iot-eyecatcher-broker:latest

HTTP API

GET /{topicName}

Get the last message of the given topic. 404 if topic does not exist.

POST /{topicName}

Send an new message of the given topic. Creates topic if it does not exist. You need to authenticate with HTTP Basic authentication.

Websocket API

GET /

Once connected, send the following message to...

...subscribe to a topic:

{"operation":"subscribe", "topic":"insert-topic-name-here"}

...unsubscribe from a topic:

{"operation":"unsubscribe", "topic":"insert-topic-name-here"}

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
mocks
net

Jump to

Keyboard shortcuts

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