args

package
v0.0.0-...-ec177ba Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	Data             flags.Filename `short:"d" long:"data" description:"directory files are stored" default:"/data" env:"DATA_DIR"`
	UploadAddress    string         `short:"u" long:"upload-address" description:"address of upload server" default:"0.0.0.0:9090" env:"UPLOAD_ADDRESS"`
	UIAddress        string         `short:"c" long:"ui-address" description:"address of web client" default:"0.0.0.0:8080" env:"UI_ADDRESS"`
	ShutdownTimeout  time.Duration  `` /* 133-byte string literal not displayed */
	UploadTimeout    time.Duration  `short:"o" long:"upload-timeout" description:"how long client have to upload data" default:"15s" env:"UPLOAD_TIMEOUT"`
	LimitUpload      int64          `short:"l" long:"limit-upload" description:"size in bytes to limit upload size, 0 to disable" default:"0" env:"LIMIT_UPLOAD"`
	DestinationsFile flags.Filename `` /* 132-byte string literal not displayed */
}

func NewArgs

func NewArgs() (*Args, error)

Jump to

Keyboard shortcuts

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