server

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start()

func StartGUI

func StartGUI()

Types

type Announcement

type Announcement struct {
	Content string `json:"content"`
	Hash    string `json:"hash"`
}

type FileInfo

type FileInfo struct {
	RelativePath string   `json:"relative_path"`
	Type         FileType `json:"type"`
	Hash         string   `json:"hash"`
}

type FileType

type FileType int8
const (
	TypeFile    FileType = 1
	TypeDir     FileType = 2
	TypeSymlink FileType = 4
)

type ScanStatus

type ScanStatus int8
const (
	ScanStatusWait      ScanStatus = 10
	ScanStatusScanning  ScanStatus = 20
	ScanStatusFailed    ScanStatus = 30
	ScanStatusCompleted ScanStatus = 40
)

type ServerFileInfo

type ServerFileInfo struct {
	ScanStatus ScanStatus  `json:"status"`
	Files      []*FileInfo `json:"files"`
}

Jump to

Keyboard shortcuts

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