pi

package
v0.0.0-...-acc543f Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Provide(
	NewPI,
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Enabled bool `yaml:"enabled"`
}

type PI

type PI struct {
	// contains filtered or unexported fields
}

func NewPI

func NewPI(lc fx.Lifecycle, log *zap.Logger, config *Config) (*PI, error)

func (*PI) Status

func (pi *PI) Status(c echo.Context) error

func (*PI) Turn

func (pi *PI) Turn(c echo.Context) error

type Pin

type Pin struct {
	PinNumber int `json:"pin",omitempty`
	Status    int `json:"status"`
}

Jump to

Keyboard shortcuts

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