Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShrinkDatabase ¶
func ShrinkDatabase()
ShrinkDatabase initialises and shrinks the MD@Home database
Types ¶
type ClientSettings ¶
type ClientSettings struct { CacheDirectory string `json:"cache_directory"` ClientSecret string `json:"client_secret"` ClientPort int `json:"client_port"` MaxKilobitsPerSecond int `json:"max_kilobits_per_second"` MaxCacheSizeInMebibytes int `json:"max_cache_size_in_mebibytes"` MaxReportedSizeInMebibytes int `json:"max_reported_size_in_mebibytes"` GracefulShutdownInSeconds int `json:"graceful_shutdown_in_seconds"` CacheScanIntervalInSeconds int `json:"cache_scan_interval_in_seconds"` CacheRefreshAgeInSeconds int `json:"cache_refresh_age_in_seconds"` MaxCacheScanTimeInSeconds int `json:"max_cache_scan_time_in_seconds"` RejectInvalidTokens bool `json:"reject_invalid_tokens"` }
ClientSettings stores client settings
type ServerRequest ¶
type ServerRequest struct {
Secret string `json:"secret"`
}
ServerRequest stores a single `secret` field for miscellanous operations
type ServerResponse ¶
type ServerResponse struct { ImageServer string `json:"image_server"` URL string `json:"url"` TokenKey string `json:"token_key"` Paused bool `json:"paused"` Compromised bool `json:"compromised"` LatestBuild int `json:"latest_build"` TLS TLSCert `json:"tls"` }
ServerResponse stores a representation of the response given by the `/ping` backend
type ServerSettings ¶
type ServerSettings struct { Secret string `json:"secret"` Port int `json:"port"` DiskSpace int `json:"disk_space"` NetworkSpeed int `json:"network_speed"` BuildVersion int `json:"build_version"` TLSCreatedAt *string `json:"tls_created_at"` }
ServerSettings stores server settings
Click to show internal directories.
Click to hide internal directories.