srv

command module
v0.0.0-...-dc9d3bd Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2021 License: MIT Imports: 9 Imported by: 0

README

Server notes

How to start (requires linux)

go run ./server.go

How to build

If building on different platform, it's important to define the target operating system and cpu architecture. For example building on MS Win or Apple MacOS for RaspberryPI device would require following variables.

GOOS=linux GOARCH=arm go build ./server.go

Gqlgen

The app uses gqlgen for the api layer.

Init
go mod init github.com/housekpr/core/srv
go get github.com/99designs/gqlgen
go get github.com/vektah/gqlparser/v2@v2.1.0
go run github.com/99designs/gqlgen init
schema the scheme

go run github.com/99designs/gqlgen generate

Gpiod

GPIO is managed over gpiod. It's library for accessing GPIO pins/lines on Linux platforms using the GPIO character device.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
devices

Jump to

Keyboard shortcuts

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