node

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2026 License: Apache-2.0 Imports: 17 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deps added in v1.2.0

type Deps struct {
	Logger    *logrus.Logger
	RPCNode   *node.RPCNode
	Devices   manager.Devices
	Config    config.Service
	Managers  []string
	Reconnect node.ConnectionHandler
}

Deps are what the node service is built on.

type Service

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

Service is the node side of the connection to the master: it dials the master and serves the node's RPC methods over that connection.

func New

func New(deps Deps) *Service

New builds the node service.

func (*Service) ConnectAndServe

func (s *Service) ConnectAndServe()

func (*Service) RegisterRoutes

func (s *Service) RegisterRoutes(r *gin.Engine, auth *gin.RouterGroup) error

Jump to

Keyboard shortcuts

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