config

package
v0.0.0-...-04b4601 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsyncWrite

func AsyncWrite() bool

func ChunkSize

func ChunkSize() int

func DbURL

func DbURL() string

func FTPAddr

func FTPAddr() string

func FTPPortRange

func FTPPortRange() string

func HTTPAddr

func HTTPAddr() string

func HTTPGuest

func HTTPGuest() bool

func Password

func Password() string

func Username

func Username() string

func WDAddr

func WDAddr() string

func Webhooks

func Webhooks() string

Types

type Config

type Config struct {
	FTPAddr      string           `` /* 145-byte string literal not displayed */
	FTPPortRange string           `` /* 143-byte string literal not displayed */
	Username     string           `help:"Username for the ddrv service, used for FTP, HTTP or WEBDAV access authentication." env:"USERNAME"`
	Password     string           `help:"Password for the ddrv service, used for FTP, HTTP or WEBDAV access authentication." env:"PASSWORD"`
	HTTPAddr     string           `help:"Network address for the HTTP server to bind to" env:"HTTP_ADDR" default:":2526"`
	HTTPGuest    bool             `help:"If true, enables read-only guest access to the HTTP file manager without login." env:"HTTP_GUEST" default:"false"`
	WDAddr       string           `help:"Network address for the WebDav server to bind to" env:"WEBDAV_ADDR" default:":2527"`
	DbURL        string           `` /* 169-byte string literal not displayed */
	Webhooks     string           `help:"Comma-separated list of Manager webhook URLs used for sending attachment messages." env:"WEBHOOKS" required:""`
	ChunkSize    int              `` /* 157-byte string literal not displayed */
	AsyncWrite   bool             `` /* 291-byte string literal not displayed */
	Version      kong.VersionFlag `kong:"name='version', help='Display version.'"`
}

func New

func New() *Config

New creates a new configuration object and assigns it to the global variable.

Jump to

Keyboard shortcuts

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