node

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 8, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func New

func New(logger *logrus.Logger, db *gorm.DB, rpcNode *node.RPCNode, dm manager.Devices, config config.Service, managers []string, reconnect node.ConnectionHandler) *Service

func (*Service) ConnectAndServe

func (s *Service) ConnectAndServe()

func (*Service) RegisterNode

func (rpc *Service) RegisterNode(identifier, hostname, os, path string, port int32, managers []string) error

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