confpar

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2020 License: MIT Imports: 0 Imported by: 10

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
	Logging Logging           `json:"logging"` // Logging 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
	Logging                  Logging    `json:"logging"`                     // Logging parameters
}

Content defines the content of the config file

type Logging added in v0.8.0

type Logging struct {
	FtpExchanges bool `json:"ftp_exchanges"` // Log all ftp exchanges
	FileAccesses bool `json:"file_accesses"` // Log all file accesses
}

Logging defines how we will log accesses

type PortRange

type PortRange struct {
	Start int `json:"start"` // Start of the range
	End   int `json:"end"`   // End of the range
}

PortRange defines a port-range ... used only for the passive transfer listening range at this stage.

Jump to

Keyboard shortcuts

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