package
1.4.1
Repository: https://github.com/labbcb/rnnr.git
Documentation: pkg.go.dev

# Functions

CheckTask remotely check a running task.
DockerConnect creates a Docker client using environment variables.
GetNodeResources gets node resource information.
MongoConnect creates a MongoDB client.
NewMain creates a server and initializes Task and Node endpoints.
NewWorker creates a Worker.
RemoteCancel cancels remotely a task.
RemoteCheck checks remotely a task.
RemoteRun remotely runs a task as a container.

# Constants

NodeCollection is the collection name for nodes.
TaskCollection is the collection name for tasks.

# Structs

DB wraps MongoDB client to provides task- and node-related operations.
Docker struct wraps Docker client.
Main is a main instance.
NetworkError represents a network error.
NoActiveNodes error is returned when there is no active node for processing tasks remotely.
NoEnoughResources error is returned when none os active node have enough computing resources to process task.
Worker struct wraps service info and Docker connection.