service

package
v0.0.0-...-70b7d01 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApp

func NewApp() *fiber.App

func RPC

func RPC(route string) error

RPC sends a request to a remote service

Types

type Service

type Service struct {
	SerialPort *serial.Port
	App        *fiber.App
	Log        *logrus.Entry
	// contains filtered or unexported fields
}

func New

func New(baud int) *Service

func (*Service) SetPoller

func (s *Service) SetPoller(p pollFunc)

func (*Service) Start

func (s *Service) Start()

Start starts the metrics poller and API server

type Svc

type Svc struct {
	Ports map[string]string `yaml:"ports"`
}

func ParseFile

func ParseFile() (*Svc, error)

Jump to

Keyboard shortcuts

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