Documentation
¶
Overview ¶
Package confpar provide the core parameters of the config
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Access ¶
type Access struct {
User string `json:"user"` // User authenticating
Pass string `json:"pass"` // Password used for authentication
Fs string `json:"fs"` // Backend used for accessing file
Params map[string]string `json:"params"` // Backend parameters
}
Access provides rules around any access
type Content ¶
type Content struct {
Version int `json:"version"` // File format version
ListenAddress string `json:"listen_address"` // Address to listen on
MaxClients int `json:"max_clients"` // Maximum clients who can connect
Accesses []*Access `json:"accesses"` // Accesses offered to users
PassiveTransferPortRange *PortRange `json:"passive_transfer_port_range"` // Listen port range
}
Content defines the content of the config file
Click to show internal directories.
Click to hide internal directories.