Skip to content
Go Makefile Dockerfile
Branch: master
Clone or download
rzr docs: Add microk8s page
Change-Id: I800d558c89a6f7f8c19cd6183cfa0b11c6ba62a5
Signed-off-by: Philippe Coval <p.coval@samsung.com>
Latest commit d0c7fd2 Aug 20, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
example example: Relocate to separate app dir Aug 19, 2019
extra/tools/kube kube: Add webthing-go.yml bundle Aug 7, 2019
.dockerignore docker: Ignore git contents (updated) Aug 7, 2019
.gitignore git: Ignore exec binaries Aug 20, 2019
.travis.yml travis: Add config file Aug 7, 2019
.whitesource Add .whitesource configuration file Aug 8, 2019
Dockerfile docker: Run binary executable from dedicated image Aug 19, 2019
LICENSE legal : Add LICENSE file Aug 7, 2019
Makefile build: go command can be overloaded Aug 20, 2019
README.md doc: Update path Aug 19, 2019
docker-compose.yml docker: Run binary executable from dedicated image Aug 19, 2019
go.mod go: Add packaging file Aug 20, 2019
go.sum go: Add packaging file Aug 20, 2019
webthing.go lib: Update inline doc Aug 7, 2019

README.md

WEBTHING-GO:

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:

You can’t perform that action at this time.