internal

package
v0.0.0-...-fbaf48a Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ControllerNode

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

Controller

func GetcontrollerNode

func GetcontrollerNode() *ControllerNode

GetcontrollerNode returns the node instance

func (*ControllerNode) Init

func (n *ControllerNode) Init() (err error)

func (*ControllerNode) Start

func (n *ControllerNode) Start()

type Server

type Server struct {
	proto.UnimplementedNodeServiceServer

	// channel to receive command
	CmdChannel chan string
}

func GetGrpcServer

func GetGrpcServer() *Server

GetNodeServiceGrpcServer singleton service

func (Server) AssignTask

func (n Server) AssignTask(request *proto.Request, server proto.NodeService_AssignTaskServer) error

func (Server) ReportStatus

func (n Server) ReportStatus(ctx context.Context, request *proto.Request) (*proto.Response, error)

type WorkerNode

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

func GetWorkerNode

func GetWorkerNode() *WorkerNode

func (*WorkerNode) Init

func (n *WorkerNode) Init() (err error)

func (*WorkerNode) Start

func (n *WorkerNode) Start()

Jump to

Keyboard shortcuts

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