rzr / webthing-go

http://purl.org/webthing-go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WEBTHING-GO

Codacy Badge

GitHub forks license GitHub version GoDoc Build Status pulls Automated Builds Build Status Go Report Card codebeat badge

USAGE

To get started look at "example" directory:

go version
#| go version go1.10.4 linux/amd64

go get github.com/rzr/webthing-go

cd ~/go/src/github.com/rzr/webthing-go
go run example/simplest-webthing-go/simplest-thing.go
#| Listening: :8888

curl http://localhost:8888/properties
#| {"on":false}

curl -X PUT --data '{"on": true}'  http://localhost:8888/properties/on
#| {"on":true}

curl http://localhost:8888/properties/on
#| {"on":true}

curl http://localhost:8888 | jq -M .
#| { ...
#| "title": "ActuatorExample"
#| }

To import published module just use this alias:

import (
	webthing "github.com/rzr/webthing-go"
)

RESOURCES

About

http://purl.org/webthing-go

License:Mozilla Public License 2.0


Languages

Language:Go 59.7%Language:Dockerfile 22.1%Language:Makefile 18.2%