server

package
v0.0.0-...-c897c9b Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Port = 8101
View Source
var StorageFolder = "storage"

Functions

func Merge

func Merge(fnames []string, fnameout string) (err error)

Merges the files together and writes metadata to preserve the slice start times as boundaries between each file

func Serve

func Serve(useFiles bool, flagDontConnect bool, chanStringArg chan string, chanPrepareUploadArg chan bool, chanDeviceTypeArg chan string) (err error)

Types

type ByteCounter

type ByteCounter struct {
	Callback     func(int64)
	TotalBytes   int64
	TargetWriter io.Writer
}

func (*ByteCounter) Write

func (bc *ByteCounter) Write(p []byte) (n int, err error)

type Message

type Message struct {
	Action               string         `json:"action"`
	Message              string         `json:"message"`
	Boolean              bool           `json:"boolean"`
	Number               int64          `json:"number"`
	Error                string         `json:"error"`
	Success              bool           `json:"success"`
	Filename             string         `json:"filename"`
	Filenames            []string       `json:"filenames"`
	File                 zeptocore.File `json:"file"`
	SliceStart           []float64      `json:"sliceStart"`
	SliceStop            []float64      `json:"sliceStop"`
	SliceType            []int          `json:"sliceType"`
	State                string         `json:"state"`
	Place                string         `json:"place"`
	DeviceType           string         `json:"deviceType"`
	DeviceVersion        string         `json:"deviceVersion"`
	DeviceFirmwareUpload string         `json:"deviceFirmwareUpload"`
	LatestVersion        string         `json:"latestVersion"`
}

Jump to

Keyboard shortcuts

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