config

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Autopilot

type Autopilot struct {
	Enabled                        bool          `yaml:"enabled,omitempty"`
	AccountsRefillInterval         time.Duration `yaml:"accountsRefillInterval,omitempty"`
	Heartbeat                      time.Duration `yaml:"heartbeat,omitempty"`
	MigrationHealthCutoff          float64       `yaml:"migrationHealthCutoff,omitempty"`
	RevisionBroadcastInterval      time.Duration `yaml:"revisionBroadcastInterval,omitempty"`
	RevisionSubmissionBuffer       uint64        `yaml:"revisionSubmissionBuffer,omitempty"`
	ScannerInterval                time.Duration `yaml:"scannerInterval,omitempty"`
	ScannerBatchSize               uint64        `yaml:"scannerBatchSize,omitempty"`
	ScannerNumThreads              uint64        `yaml:"scannerNumThreads,omitempty"`
	MigratorParallelSlabsPerWorker uint64        `yaml:"migratorParallelSlabsPerWorker,omitempty"`
}

Autopilot contains the configuration for an autopilot.

type Bus

type Bus struct {
	AnnouncementMaxAgeHours       uint64        `yaml:"announcementMaxAgeHours,omitempty"`
	Bootstrap                     bool          `yaml:"bootstrap,omitempty"`
	GatewayAddr                   string        `yaml:"gatewayAddr,omitempty"`
	RemoteAddr                    string        `yaml:"remoteAddr,omitempty"`
	RemotePassword                string        `yaml:"remotePassword,omitempty"`
	PersistInterval               time.Duration `yaml:"persistInterval,omitempty"`
	UsedUTXOExpiry                time.Duration `yaml:"usedUtxoExpiry,omitempty"`
	SlabBufferCompletionThreshold int64         `yaml:"slabBufferCompleionThreshold,omitempty"`
}

Bus contains the configuration for a bus.

type Config

type Config struct {
	Seed      string `yaml:"seed,omitempty"`
	Directory string `yaml:"directory,omitempty"`

	ShutdownTimeout time.Duration `yaml:"shutdownTimeout,omitempty"`

	Log Log `yaml:"log,omitempty"`

	HTTP      HTTP      `yaml:"http,omitempty"`
	Bus       Bus       `yaml:"bus,omitempty"`
	Worker    Worker    `yaml:"worker,omitempty"`
	S3        S3        `yaml:"s3,omitempty"`
	Autopilot Autopilot `yaml:"autopilot,omitempty"`

	Database Database `yaml:"database,omitempty"`
}

Config contains the configuration for a renterd node

type Database

type Database struct {
	Log DatabaseLog `yaml:"log,omitempty"`
	// optional fields depending on backend
	MySQL MySQL `yaml:"mysql,omitempty"`
}

type DatabaseLog

type DatabaseLog struct {
	IgnoreRecordNotFoundError bool          `yaml:"ignoreRecordNotFoundError,omitempty"`
	SlowThreshold             time.Duration `yaml:"slowThreshold,omitempty"`
}

type HTTP

type HTTP struct {
	Address  string `yaml:"address,omitempty"`
	Password string `yaml:"password,omitempty"`
}

HTTP contains the configuration for the HTTP server.

type Log

type Log struct {
	Path  string `yaml:"path,omitempty"`
	Level string `yaml:"level,omitempty"`
}

Log contains the configuration for the logger.

type MySQL

type MySQL struct {
	URI             string `yaml:"uri,omitempty"`
	User            string `yaml:"user,omitempty"`
	Password        string `yaml:"password,omitempty"`
	Database        string `yaml:"database,omitempty"`
	MetricsDatabase string `yaml:"metricsDatabase,omitempty"`
}

MySQL contains the configuration for an optional MySQL database.

type RemoteWorker

type RemoteWorker struct {
	Address  string `yaml:"address,omitempty"`
	Password string `yaml:"password,omitempty"`
}

type S3 added in v0.6.0

type S3 struct {
	Address           string            `yaml:"address,omitempty"`
	DisableAuth       bool              `yaml:"disableAuth,omitempty"`
	Enabled           bool              `yaml:"enabled,omitempty"`
	KeypairsV4        map[string]string `yaml:"keypairsV4,omitempty"`
	HostBucketEnabled bool              `yaml:"hostBucketEnabled,omitempty"`
}

type Worker

type Worker struct {
	Enabled                       bool           `yaml:"enabled,omitempty"`
	ID                            string         `yaml:"id,omitempty"`
	Remotes                       []RemoteWorker `yaml:"remotes,omitempty"`
	AllowPrivateIPs               bool           `yaml:"allowPrivateIPs,omitempty"`
	BusFlushInterval              time.Duration  `yaml:"busFlushInterval,omitempty"`
	ContractLockTimeout           time.Duration  `yaml:"contractLockTimeout,omitempty"`
	DownloadOverdriveTimeout      time.Duration  `yaml:"downloadOverdriveTimeout,omitempty"`
	UploadOverdriveTimeout        time.Duration  `yaml:"uploadOverdriveTimeout,omitempty"`
	DownloadMaxOverdrive          uint64         `yaml:"downloadMaxOverdrive,omitempty"`
	DownloadMaxMemory             uint64         `yaml:"downloadMaxMemory,omitempty"`
	UploadMaxMemory               uint64         `yaml:"uploadMaxMemory,omitempty"`
	UploadMaxOverdrive            uint64         `yaml:"uploadMaxOverdrive,omitempty"`
	AllowUnauthenticatedDownloads bool           `yaml:"allowUnauthenticatedDownloads,omitempty"`
}

Worker contains the configuration for a worker.

Jump to

Keyboard shortcuts

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