Documentation ¶
Index ¶
- func AwaitTermination(logger log.Logger, terminationListener chan error)
- func NewTerminationListener() chan error
- type Action
- type Amount
- type BindAddress
- type Config
- type Copy
- type Correction
- type EntryType
- type Environment
- type FTPAuth
- type FTPConfig
- type GlobalConfig
- type HTTPConfig
- type Match
- type Matching
- type Paths
- type Response
- type Return
- type ServerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AwaitTermination ¶
func NewTerminationListener ¶
func NewTerminationListener() chan error
Types ¶
type Action ¶
type Action struct { Delay *time.Duration // e.g. "12h" or "10s" Copy *Copy Correction *Correction Return *Return }
type BindAddress ¶
type BindAddress struct {
Address string
}
BindAddress specifies where the http server should bind to.
type Config ¶
type Config struct { Servers ServerConfig Telemetry telemetry.Config ValidateOpts *ach.ValidateOpts Matching Matching Responses []Response }
Config defines all the configuration for the app
type Correction ¶
type Environment ¶
type Environment struct { Logger log.Logger Config *Config TimeService stime.TimeService Router *mux.Router // ftp or sftp server FTPServer *ftp.Server Shutdown func() }
Environment - Contains everything thats been instantiated for this service.
func NewEnvironment ¶
func NewEnvironment(env *Environment) (*Environment, error)
NewEnvironment - Generates a new default environment. Overrides can be specified via configs.
func (*Environment) RunServers ¶
func (env *Environment) RunServers(terminationListener chan error) func()
RunServers - Boots up all the servers and awaits till they are stopped.
type FTPConfig ¶
type FTPConfig struct { RootPath string Hostname string Auth FTPAuth Port int PassivePorts string Paths Paths }
FTPConfig configuration for running an FTP server
type GlobalConfig ¶
type GlobalConfig struct {
ACHTestHarness Config
}
func (*GlobalConfig) Validate ¶ added in v0.8.0
func (gc *GlobalConfig) Validate() error
type HTTPConfig ¶
type HTTPConfig struct {
Bind BindAddress
}
HTTPConfig configuration for running an http server
type Match ¶
type ServerConfig ¶
type ServerConfig struct { FTP *FTPConfig Admin HTTPConfig }
ServerConfig - Groups all the http configs for the servers and ports that get opened.
Click to show internal directories.
Click to hide internal directories.