cli

package
v0.0.0-...-df8f024 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModerateUploadSpeed   = "5–10 Mbps"
	ModerateDownloadSpeed = "10–25 Mbps"
	MaxFileSizeBytes      = 524288000 // 500 MB
)

Variables

This section is empty.

Functions

func CheckRewards

func CheckRewards(nodeID string)

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately.

func ShowNodeStatus

func ShowNodeStatus()

Types

type FileMetadataModel

type FileMetadataModel struct {
	CID       string         `gorm:"column:cid;primaryKey;not null;size:255" json:"cid"`
	FileName  string         `gorm:"size:255" json:"fileName"`
	Note      string         `gorm:"size:255" json:"note"`
	FileSize  string         `gorm:"size:255" json:"fileSize"`
	Shards    datatypes.JSON `gorm:"type:jsonb" json:"shards"`
	CreatedAt time.Time      `json:"createdAt"`
}

type FileMetadataResponse

type FileMetadataResponse struct {
	CID       string          `json:"cid"`
	FileName  string          `json:"fileName"`
	Note      string          `json:"note"`
	FileSize  string          `json:"fileSize"`
	CreatedAt time.Time       `json:"createdAt"`
	Shards    []storage.Shard `json:"shards"`
}

Jump to

Keyboard shortcuts

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