Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Assets fs.FS = emptyfs.FS{}
Assets contains either the built admin/back-office/ui or it is nil.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// TODO: remove Identity flags since --identity-dir is deprecated
Identity identity.Config
Debug debug.Config
Console server.Config
}
Config is all the configuration parameters for a Multinode Dashboard.
type DB ¶
type DB interface {
// Nodes returns nodes database.
Nodes() nodes.DB
// MigrateToLatest initializes the database.
MigrateToLatest(ctx context.Context) error
// Close closes the database.
Close() error
}
DB is the master database for Multinode Dashboard.
architecture: Master Database
type Peer ¶
type Peer struct {
// core dependencies
Log *zap.Logger
Identity *identity.FullIdentity
DB DB
Dialer rpc.Dialer
// contains logic of nodes domain.
Nodes struct {
Service *nodes.Service
}
// contains logic of bandwidth domain.
Bandwidth struct {
Service *bandwidth.Service
}
// exposes operators related logic.
Operators struct {
Service *operators.Service
}
// contains logic of payouts domain.
Payouts struct {
Service *payouts.Service
}
Storage struct {
Service *storage.Service
}
Reputation struct {
Service *reputation.Service
}
// Web server with web UI.
Console struct {
Listener net.Listener
Endpoint *server.Server
}
Servers *lifecycle.Group
}
Peer is the a Multinode Dashboard application itself.
architecture: Peer
Click to show internal directories.
Click to hide internal directories.