server

package
v0.0.0-...-8b1be2f Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Server

func Server()

Types

type Row

type Row struct {
	ID       string
	Filename string
	Size     string
	Offset   int64
}

type ServerConf

type ServerConf struct {
	Url             string `docopt:"--url"`
	BindAddr        string `docopt:"--bind"`
	Port            string `docopt:"--port"`
	HttpSock        string `docopt:"--unix-sock"`
	MaxSize         int64  `docopt:"--max-size"`
	UploadDir       string `docopt:"--dir"`
	StoreSize       int64  `docopt:"--store-size"`
	ListingEndpoint string `docopt:"--listing-endpoint"`
	FilesEndpoint   string `docopt:"--files-endpoint"`
	Timeout         int64  `docopt:"--timeout"`
	IsBehindProxy   bool   `docopt:"--behind-proxy"`
	Inc             bool   `docopt:"--inc"`
}

Jump to

Keyboard shortcuts

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