conf

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// other
	PrintVersion bool
	PrintAbout   bool

	// file sync
	Source                core.VFS
	Dest                  core.VFS
	SyncOnce              bool
	SyncCron              string
	EnableLogicallyDelete bool
	ClearDeletedPath      bool
	IgnoreConf            string
	IgnoreDeletedPath     bool
	ChunkSize             int64

	// retry
	RetryCount int
	RetryWait  time.Duration
	RetryAsync bool

	// log
	LogLevel         int
	EnableFileLogger bool
	LogDir           string
	LogFlush         bool
	LogFlushInterval time.Duration
	EnableEventLog   bool

	// daemon
	IsDaemon           bool
	DaemonPid          bool
	DaemonDelay        time.Duration
	DaemonMonitorDelay time.Duration
	KillPPid           bool
	IsSubprocess       bool

	// file server
	EnableFileServer         bool
	FileServerAddr           string
	EnableFileServerCompress bool
	EnablePProf              bool
	PProfPrivate             bool
	EnablePushServer         bool

	// tls transfer
	EnableTLS   bool
	TLSCertFile string
	TLSKeyFile  string

	// login user
	Users             string
	RandomUserCount   int
	RandomUserNameLen int
	RandomPasswordLen int
	RandomDefaultPerm string
}

Config store all the flag info

Jump to

Keyboard shortcuts

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