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 {
Command string `kong:"-"`
DataDirectory string `name:"data-directory" help:"Path to store data." type:"path" optional:""`
Version struct{} `cmd:"" hidden:""` // HACK: hidden because kong will throw error if a command is not supplied
}
func ReadAndParseCLI ¶ added in v0.11.0
func ReadAndParseCLI() CLI
type 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"`
} `embed:"" prefix:"http-"`
SMTP struct {
Disable bool
Host string
Port int `default:"1025"`
} `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.