flags

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2025 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_PORT = 8380 // ASCII (Decimal) 'SP' (83 + 80)

Variables

View Source
var (
	ConfigFile          string // custom config file path
	Addr                string
	Sign                bool
	Parse               bool
	Log                 bool
	Encrypt             bool
	Cors                bool
	BasicAuth           bool
	EnableUnix          bool
	EnableFile          bool
	EnableRclone        bool
	EnableCurl          bool
	EnableExec          bool
	Prod                bool
	OpenNormal          bool
	SupressError        bool
	RcloneBinary        string
	RcloneConfig        string
	CurlBinary          string
	Rootpath            string
	Sitename            string
	Adminpath           string
	Prefix              string
	Eid                 string
	Key                 string
	Keytype             string
	PublicUrl           string
	KeytypeBlacklistStr string
	User                string
	Pass                string
	KeytypeBlacklist    []string
	OpenScopes          ArrayFlags // scopes that do NOT need signing
	Aliases             ArrayFlags // each alias format: "prefix=path"

	Cipher cipher.AEAD
)

Functions

func DoParse added in v0.13.0

func DoParse()

Parse flags from command line args, env, and config files. It calls log.Fatalf if encounters any error.

Types

type ArrayFlags added in v0.11.0

type ArrayFlags []string

func (*ArrayFlags) Set added in v0.11.0

func (i *ArrayFlags) Set(value string) error

func (*ArrayFlags) String added in v0.11.0

func (i *ArrayFlags) String() string

Jump to

Keyboard shortcuts

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