easymotion

package module
v0.0.0-...-b8f5ead Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: MIT Imports: 12 Imported by: 0

README

EasyMotion

Run

$ make run

Build

# Creating bin file in dist directory
$ make build

Commands under easymotion bin file

# Install as a system service
$ easymotion install
# Uninstall 
$ easymotion uninstall
# Start service 
$ easymotion start
# Stop service 
$ easymotion stop
# Restart service 
$ easymotion restart

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MatFromBytes

func MatFromBytes(data []byte) (gocv.Mat, error)

func MatToBytes

func MatToBytes(cam *opencvservice.Camera) ([]byte, error)

Types

type Hub

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

func (*Hub) Close

func (h *Hub) Close() error

func (*Hub) RegisterServices

func (h *Hub) RegisterServices() error

func (*Hub) Run

func (h *Hub) Run() error

type MatOption

type MatOption struct {
	Rows, Cols int
	Kind       int
	Data       []byte
}

type Runner

type Runner interface {
	RegisterServices() error
	Run() error
	Close() error
}

func NewRunner

func NewRunner() Runner

type SystemContext

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

func NewSystemContext

func NewSystemContext() *SystemContext

func (*SystemContext) Start

func (s *SystemContext) Start(srv service.Service) error

func (*SystemContext) Stop

func (s *SystemContext) Stop(srv service.Service) error

type SystemService

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

func CreateSystemService

func CreateSystemService() (*SystemService, error)

func (*SystemService) InstallService

func (s *SystemService) InstallService() error

func (*SystemService) RestartService

func (s *SystemService) RestartService() error

func (*SystemService) RunService

func (s *SystemService) RunService() error

func (*SystemService) StartService

func (s *SystemService) StartService() error

func (*SystemService) StatusService

func (s *SystemService) StatusService() (service.Status, error)

func (*SystemService) StopService

func (s *SystemService) StopService() error

func (*SystemService) UninstallService

func (s *SystemService) UninstallService() error

Directories

Path Synopsis
cmd
service

Jump to

Keyboard shortcuts

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