Nexus: github.com/RTradeLtd/Nexus/daemon Index | Files

package daemon

import "github.com/RTradeLtd/Nexus/daemon"

Package daemon provides the ipfs-orchestrator's server

Index

Package Files

daemon.go doc.go endpoints.go

type Daemon Uses

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

Daemon exposes orchestrator functionality via a gRPC API

func New Uses

func New(logger *zap.SugaredLogger, o *orchestrator.Orchestrator) *Daemon

New initializes a new Daemon

func (*Daemon) NetworkDiagnostics Uses

func (d *Daemon) NetworkDiagnostics(
    ctx context.Context,
    req *nexus.NetworkRequest,
) (*nexus.NetworkDiagnosticsResponse, error)

NetworkDiagnostics retrieves detailed diagnostic details about the requested network node

func (*Daemon) NetworkStats Uses

func (d *Daemon) NetworkStats(
    ctx context.Context,
    req *nexus.NetworkRequest,
) (*nexus.NetworkStatusReponse, error)

NetworkStats retrieves stats about the requested node

func (*Daemon) Ping Uses

func (d *Daemon) Ping(
    c context.Context,
    req *nexus.Empty,
) (*nexus.Empty, error)

Ping is useful for checking client-server connection

func (*Daemon) RemoveNetwork Uses

func (d *Daemon) RemoveNetwork(
    ctx context.Context,
    req *nexus.NetworkRequest,
) (*nexus.Empty, error)

RemoveNetwork removes assets for requested node

func (*Daemon) Run Uses

func (d *Daemon) Run(ctx context.Context, cfg config.API) error

Run spins up daemon server

func (*Daemon) StartNetwork Uses

func (d *Daemon) StartNetwork(
    ctx context.Context,
    req *nexus.NetworkRequest,
) (*nexus.StartNetworkResponse, error)

StartNetwork brings a node for the requested network online

func (*Daemon) StopNetwork Uses

func (d *Daemon) StopNetwork(
    ctx context.Context,
    req *nexus.NetworkRequest,
) (*nexus.Empty, error)

StopNetwork brings a node for the requested network offline

func (*Daemon) UpdateNetwork Uses

func (d *Daemon) UpdateNetwork(
    ctx context.Context,
    req *nexus.NetworkRequest,
) (*nexus.Empty, error)

UpdateNetwork updates the configuration of the given network

Package daemon imports 17 packages (graph) and is imported by 1 packages. Updated 2019-02-05. Refresh now. Tools for package owners.