Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //ErrDiskSpace raised if disk space not enough ErrDiskSpace = errors.New("not enough disk space") )
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { //config Title string `opts:"help=Title of this instance,env=TITLE"` Port int `opts:"help=Listening port,env=PORT"` Host string `opts:"help=Listening interface (default all)"` Auth string `opts:"help=Optional basic auth in form 'user:password',env=AUTH"` ProxyURL string `opts:"help=Proxy url,env=PROXY_URL"` ConfigPath string `opts:"help=Configuration file path (default /etc/cloud-torrent.yaml)"` KeyPath string `opts:"help=TLS Key file path"` CertPath string `opts:"help=TLS Certicate file path,short=r"` RestAPI string `opts:"help=Listen on a trusted port accepts /api/ requests (eg. localhost:3001),env=RESTAPI"` Log bool `opts:"help=Enable request logging"` Open bool `opts:"help=Open now with your default browser"` DisableLogTime bool `opts:"help=Don't print timestamp in log"` Debug bool `opts:"help=Debug app"` DebugTorrent bool `opts:"help=Debug torrent engine"` ConvYAML bool `opts:"help=Convert old json config to yaml format."` // contains filtered or unexported fields }
Server is the "State" portion of the diagram
func (*Server) GetIsPendingBoot ¶
GetIsPendingBoot used by engine doneCmd
func (*Server) RestoreTorrent ¶
Click to show internal directories.
Click to hide internal directories.