machines

package
v0.0.0-...-ef13b01 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type HttpHandlerFunc

type HttpHandlerFunc http.HandlerFunc

func HttpHandler

func HttpHandler(store *Store) HttpHandlerFunc

type Machine

type Machine struct {
	Id        int64 `json:"id"`
	IsWorking bool  `json:"isWorking"`
}

type Store

type Store struct {
	Db *sql.DB
}

func NewStore

func NewStore(db *sql.DB) *Store

func (*Store) UpdateMachine

func (s *Store) UpdateMachine(id int64, isWorking bool) error

Jump to

Keyboard shortcuts

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