Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLI ¶ added in v0.11.0
type CLI struct {
Config *string `name:"config" help:"Path to config file." type:"string"`
DataDirectory string `name:"data-directory" help:"Path to data directory." type:"path"`
SMTPDisable *bool `name:"smtp-disable" help:"Disable SMTP server."`
SMTPHost *string `name:"smtp-host" help:"SMTP host address to listen on."`
SMTPPort *uint16 `name:"smtp-port" help:"SMTP port to listen on."`
HTTPDisable *bool `name:"http-disable" help:"Disable HTTP server."`
HTTPHost *string `name:"http-host" help:"HTTP host address to listen on."`
HTTPPort *uint16 `name:"http-port" help:"HTTP port to listen on."`
Version bool `name:"version" help:"Show version."`
}
func ReadAndParseCLI ¶ added in v0.11.0
func ReadAndParseCLI() CLI
type Config ¶
type Config struct {
DatabasePath string
SessionsPath string
AttachmentsDirectory string
HTTPDisable bool
HTTPAddress string
HTTPBodyLimit int
SMTPDisable bool
SMTPAddress string
SMTPMaxMessageBytes int
Endpoints []endpoints.Endpoint
Rules []rules.Rule
RuleEndpoints map[string][]string
Config *models.Config
}
type Raw ¶ added in v0.11.0
type Raw struct {
MaxPayloadSize string `name:"max_payload_size" default:"25 MB"`
DataDirectory string `name:"data_directory" default:"smtpbridge_data" arg:""`
Retention struct {
EnvelopeCount *int `name:"envelope_count"`
EnvelopeAge *string `name:"envelope_age"`
AttachmentSize *string `name:"attachment_size"`
} `embed:"" prefix:"retention-"`
HTTP struct {
Disable bool
Host string
Port int `default:"8080"`
Username string
Password string
} `embed:"" prefix:"http-"`
SMTP struct {
Disable bool
Host string
Port int `default:"1025"`
Username string
Password string
} `embed:"" prefix:"smtp-"`
Endpoints map[string]RawEndpoint
Rules map[string]RawRule
}
type RawEndpoint ¶ added in v0.11.0
Click to show internal directories.
Click to hide internal directories.