Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Receiver ¶
type Receiver struct {
Name string
Host string
Ports []int
TLSPorts []int
TLSCertPath string
TLSKeyPath string
IPHeader string
Storage app.Storage
}
Receiver represents the HTTP protocol receiver.
func (*Receiver) ListenAndServe ¶
ListenAndServe sets the necessary conditions for the underlying http.Server to serve the HTTP and/or the HTTPS server for each configured port.
Any errors are returned via the received channel.
Click to show internal directories.
Click to hide internal directories.