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: 0

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